2026-03-09 11:18:22 +01:00
|
|
|
FROM node:20.19.3-slim
|
2025-10-11 13:27:50 +01:00
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2026-03-09 11:18:22 +01:00
|
|
|
# Keep install non-interactive and deterministic in CI/container contexts.
|
|
|
|
|
ENV CI=true
|
2025-10-11 13:27:50 +01:00
|
|
|
|
2026-03-09 11:18:22 +01:00
|
|
|
RUN corepack enable && corepack prepare pnpm@10.19.0 --activate
|
2025-10-11 13:27:50 +01:00
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
2026-03-09 11:18:22 +01:00
|
|
|
RUN pnpm install --frozen-lockfile --ignore-scripts --shamefully-hoist --filter @cio/api...
|
|
|
|
|
RUN find . -name 'tsconfig.tsbuildinfo' -delete
|
|
|
|
|
RUN pnpm -r --filter @cio/api... build
|
2025-10-11 13:27:50 +01:00
|
|
|
|
|
|
|
|
EXPOSE 3081
|
|
|
|
|
|
2026-03-09 11:18:22 +01:00
|
|
|
ENV NODE_ENV=production \
|
|
|
|
|
PORT=3081
|
2025-10-11 14:26:14 +01:00
|
|
|
|
2026-03-09 11:18:22 +01:00
|
|
|
CMD ["pnpm", "--filter", "@cio/api", "start"]
|