Move healthcheck to Dockerfile
This commit is contained in:
parent
4ed249086c
commit
cb02aafee7
@ -19,4 +19,6 @@ RUN chown -R node:node /app
|
||||
|
||||
USER node
|
||||
|
||||
HEALTHCHECK --interval=30s --start-period=10s --timeout=5s CMD node /app/healthcheck.js || exit 1
|
||||
|
||||
CMD ["pm2-runtime", "dist/index.js" ]
|
||||
|
@ -4,7 +4,7 @@
|
||||
"scripts": {
|
||||
"dev": "ts-node src/index.ts",
|
||||
"build": "npx tsc",
|
||||
"test": "podman build -t immich-proxy-test .. && podman run --init -it -p=3000:3000 --env-file .env immich-proxy-test",
|
||||
"test": "podman build --format docker -t immich-proxy-test .. && podman run --init -it -p=3000:3000 --env-file .env immich-proxy-test",
|
||||
"start": "node dist/index.js"
|
||||
},
|
||||
"author": "Alan Grainger",
|
||||
|
@ -6,7 +6,3 @@ services:
|
||||
ports:
|
||||
- ${PORT}:3000
|
||||
env_file: .env
|
||||
healthcheck:
|
||||
test: node /app/healthcheck.js
|
||||
interval: 30s
|
||||
start_period: 10s
|
||||
|
Loading…
Reference in New Issue
Block a user