“Docker non-root healthcheck”

pull/255/head
holo 2023-03-15 00:01:25 +07:00
parent f541bf186c
commit e6803e9a9b
1 changed files with 1 additions and 1 deletions

@ -39,4 +39,4 @@ RUN adduser -s /bin/false node; exit 0
EXPOSE 8080 EXPOSE 8080
CMD [ "./start-docker.sh" ] CMD [ "./start-docker.sh" ]
HEALTHCHECK --start-period=10s CMD node docker_healthcheck.js HEALTHCHECK --start-period=10s CMD exec su-exec node node docker_healthcheck.js