forked from mtusi2026/mtusi2026lab2
Разбить API на слои, комментарии на русском
routes -> http/auth -> repositories -> infra; поведение не изменилось, smoke, persistence и тесты уровня 4 перепрогнаны.
This commit is contained in:
+2
-2
@@ -17,5 +17,5 @@ USER node
|
||||
EXPOSE 8080
|
||||
HEALTHCHECK --interval=5s --timeout=3s --retries=5 \
|
||||
CMD ["node", "-e", "fetch('http://127.0.0.1:8080/health/ready').then(r => process.exit(r.ok ? 0 : 1), () => process.exit(1))"]
|
||||
# exec form: node is PID 1 and handles SIGTERM itself (graceful close of HTTP, pool and Valkey)
|
||||
CMD ["node", "dist/app.js"]
|
||||
# exec-форма: node — PID 1 и сам обрабатывает SIGTERM (закрывает HTTP, пул и Valkey)
|
||||
CMD ["node", "dist/main.js"]
|
||||
|
||||
Reference in New Issue
Block a user