“Docker non-root healthcheck”

This commit is contained in:
holo 2023-03-15 00:01:25 +00:00
parent f541bf186c
commit e6803e9a9b

View file

@ -39,4 +39,4 @@ RUN adduser -s /bin/false node; exit 0
EXPOSE 8080
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