Skip to content
Snippets Groups Projects
Verified Commit 54b9ee30 authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Use httpx as http client in docker healthcheck

parent 46a380a7
No related merge requests found
......@@ -2,9 +2,9 @@ FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10-slim
EXPOSE 8000
ENV PORT=8000
RUN apt-get update && apt-get -y install curl
RUN pip install --no-cache-dir httpx[cli]
HEALTHCHECK --interval=35s --timeout=4s CMD curl -f http://localhost:$PORT/health || exit 1
HEALTHCHECK --interval=35s --timeout=4s CMD httpx http://localhost:$PORT/health || exit 1
COPY ./scripts/prestart.sh /app/prestart.sh
COPY ./requirements.txt /app/requirements.txt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment