Files
Kai-Sa-Cam/apps/kai-sa-cam/Dockerfile
T
Esiah e5aa1a76b1
CD — Kai-Sa-Cam Deployment / deploy (push) Canceled after 1m29s
fix: remove public copy from kai-sa-cam dockerfile
2026-10-25 01:38:15 +02:00

48 lines
910 B
Docker

# Build stage
FROM node:22-bookworm-slim AS build
WORKDIR /app
# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Prune dev dependencies
RUN npm prune --omit=dev
# Runtime stage
FROM node:22-bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
pulseaudio-utils \
ca-certificates \
tzdata \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Use existing node user (UID 1000) from base image
# The node user already exists with UID 1000/GID 1000
COPY --from=build /app/package.json ./
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
USER node
EXPOSE 8090
ENV NODE_ENV=production
ENV PORT=8090
CMD ["node", "dist/server/index.cjs"]