Skip to content

Commit

Permalink
fix: fixed codacy recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
creyD committed Nov 24, 2024
1 parent 730b57e commit 63abb64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM python:3.12-slim
ARG VERSION=unkown
ARG VERSION=unknown

WORKDIR /app
COPY . .
Expand All @@ -18,7 +18,7 @@ EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

# 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 \
CMD curl --fail http://localhost:8000/openapi.json || exit 1

0 comments on commit 63abb64

Please sign in to comment.