treker-po-trenirovkam-i-pit.../Dockerfile
2026-11-17 06:58:51 +05:00

10 lines
461 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.

# Образ стенда (TPTIP-6): статическое приложение + мини-сервер server.js (/healthz, $PORT).
# COPY . . с .dockerignore — набор файлов приложения меняется от задачи к задаче, а сервер отдаёт только белый список.
FROM node:22-bookworm-slim
WORKDIR /app
ENV NODE_ENV=production PORT=3000
COPY . .
EXPOSE 3000
USER node
CMD ["node", "server.js"]