Убрал лишние проверки. Убрал дефолтные значения env переменных. Скорректировал dockerfile

This commit is contained in:
Первов Артем
2026-06-19 10:30:13 +03:00
parent cbe33500cf
commit 9b53f602ce
10 changed files with 52 additions and 105 deletions

View File

@@ -1,13 +1,15 @@
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY package.json package-lock.json ./
RUN npm ci
COPY tsconfig.json ./
COPY public ./public
# Runtime mappers read JSON files from src/mappings, so they must be copied into the image.
COPY src ./src
CMD ["npm", "run", "start"]
RUN npm run build && npm prune --omit=dev
CMD ["node", "dist/index.js"]