fix(docker): reintroduce docker healthcheck

This commit is contained in:
Elian Doran 2025-05-23 22:37:16 +03:00
parent 43d9f77518
commit 9867d1ab9f
No known key found for this signature in database
3 changed files with 5 additions and 3 deletions

View File

@ -25,4 +25,4 @@ FROM node:22.16.0-bullseye-slim
# Configure container
EXPOSE 8080
CMD [ "sh", "./start-docker.sh" ]
HEALTHCHECK --start-period=10s CMD exec gosu node node /usr/src/app/docker_healthcheck.js
HEALTHCHECK --start-period=10s CMD exec gosu node node /usr/src/app/docker_healthcheck.cjs

View File

@ -23,4 +23,4 @@ FROM node:22.16.0-alpine
# Configure container
EXPOSE 8080
CMD [ "sh", "./start-docker.sh" ]
HEALTHCHECK --start-period=10s CMD exec su-exec node node /usr/src/app/docker_healthcheck.js
HEALTHCHECK --start-period=10s CMD exec su-exec node node /usr/src/app/docker_healthcheck.cjs

View File

@ -208,7 +208,6 @@
"options": {
"main": "apps/server/src/main.ts",
"outputPath": "apps/server/dist",
"outputFileName": "main.js",
"tsConfig": "apps/server/tsconfig.app.json",
"platform": "node",
"external": [
@ -226,6 +225,9 @@
"esbuildOptions": {
"splitting": false
},
"additionalEntryPoints": [
"apps/server/src/docker_healthcheck.ts"
],
"assets": [
{
"glob": "**/*",