Skip to content

Commit

Permalink
fix: update health check command in Dockerfile to use GET method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovler-Young committed Dec 24, 2024
1 parent 262abb1 commit d6f7fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ COPY . .
EXPOSE 8000

HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:8000/health || exit 1
CMD wget --method=GET --no-verbose --tries=1 --spider http://localhost:8000/health || exit 1

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

0 comments on commit d6f7fe1

Please sign in to comment.