Fix healthcheck command to use array syntax (#673)
* Fix healthcheck command to use 127.0.0.1 instead of localhost * Re-add timeout to healthcheck Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update Docker healthcheck command Removed the '-t 1' option from the wget command added by Copilot in the Docker healthcheck as it is not supported in the BusyBox build. * Refactor HEALTHCHECK command in Dockerfile to use array syntax --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
bf9c8fa508
commit
66e8576384
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ ENV NODE_ENV=production \
|
|||
SWAGGER_ENABLED=false
|
||||
|
||||
HEALTHCHECK --interval=60s --timeout=3s --start-period=10s --retries=2 \
|
||||
CMD wget -q -T 3 --spider http://127.0.0.1:3002/api/health || exit 1
|
||||
CMD ["wget", "-q", "--spider", "http://127.0.0.1:3002/api/health"]
|
||||
|
||||
WORKDIR /app/backend
|
||||
ENTRYPOINT ["/app/scripts/docker-entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue