fix: fixed codacy recommendation

This commit is contained in:
2024-11-24 17:22:34 +01:00
parent 730b57e8e8
commit 63abb64b4f

View File

@@ -1,5 +1,5 @@
FROM python:3.12-slim FROM python:3.12-slim
ARG VERSION=unkown ARG VERSION=unknown
WORKDIR /app WORKDIR /app
COPY . . COPY . .
@@ -18,7 +18,7 @@ EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
# Install curl # Install curl
RUN apt-get update && apt-get install -y curl && apt-get clean RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean
HEALTHCHECK --interval=30s --timeout=10s --retries=5 \ HEALTHCHECK --interval=30s --timeout=10s --retries=5 \
CMD curl --fail http://localhost:8000/openapi.json || exit 1 CMD curl --fail http://localhost:8000/openapi.json || exit 1