Files
Esiah e8fdda738e
CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 9s
refactor: move app from apps/kai-sa-cam to the repository root
- move sources, Dockerfile and build config (src, public, package.json,
  vite/tailwind/postcss/tsconfig, index.html) to the repo root
- docker-compose: build context is now "." instead of ./apps/kai-sa-cam
- add a .dockerignore (node_modules, dist, media, config, .env, ...) so
  the larger build context does not ship media, secrets or local
  node_modules into the image
- deploy workflow: replace the apps/kai-sa-cam/** paths filter with
  paths-ignore so pushes keep triggering deployments
- remove the Renovate workflow
2026-10-26 09:01:54 +01: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"]