forked from mtusi2026/mtusi2026lab3
Разбить API на модули и перевести комментарии на русский
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
# Node 24 runs .ts directly (type stripping), so there is no build step; `npm run typecheck` checks types.
|
||||
# Node 24 исполняет .ts напрямую (type stripping), отдельной сборки нет; типы проверяет `npm run typecheck`.
|
||||
FROM node:24.22.2-alpine3.24
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
@@ -7,5 +7,5 @@ RUN npm ci --omit=dev && npm cache clean --force
|
||||
COPY src ./src
|
||||
USER node
|
||||
EXPOSE 8080
|
||||
# node is PID 1 and handles SIGTERM itself (graceful drain in src/main.ts).
|
||||
# node работает как PID 1 и сам обрабатывает SIGTERM (graceful shutdown в src/main.ts).
|
||||
CMD ["node", "src/main.ts"]
|
||||
|
||||
Reference in New Issue
Block a user