mirror of
https://github.com/unraid/api.git
synced 2026-01-01 06:01:18 -06:00
25 lines
440 B
Docker
25 lines
440 B
Docker
FROM node:22-bookworm-slim AS builder
|
|
|
|
# Install build tools and dependencies
|
|
RUN apt-get update -y && apt-get install -y \
|
|
bash \
|
|
# Real PS Command (needed for some dependencies)
|
|
procps \
|
|
python3 \
|
|
libvirt-dev \
|
|
jq \
|
|
zstd \
|
|
git \
|
|
build-essential
|
|
|
|
RUN git config --global --add safe.directory /app
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json ./
|
|
|
|
RUN npm install --include=dev
|
|
|
|
COPY . .
|
|
|
|
CMD ["npm", "run", "build"] |