sdelat-shablonnyy-grafik-sm.../Dockerfile
peppa-bot 1bed8c6d5c SSGSD-4: Dockerfile и настройки деплоя
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 05:20:17 +00:00

19 lines
517 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Веб-сервис «Шаблонный график сменности». Слушает $PORT, GET /healthz → 200.
FROM node:22-bookworm-slim AS build
WORKDIR /app
RUN corepack enable
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY tsconfig.json tsconfig.build.json ./
COPY src ./src
RUN pnpm build
FROM node:22-bookworm-slim
WORKDIR /app
ENV NODE_ENV=production PORT=3000
COPY package.json ./
COPY --from=build /app/dist ./dist
USER node
EXPOSE 3000
CMD ["node", "dist/index.js"]