Skip to content

Commit

Permalink
Try alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Oct 8, 2024
1 parent d8167d3 commit 0eb7a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend-py/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN pip install poetry==1.6.1
RUN poetry install --no-root -vvv --without dev --sync

# Deploy
FROM python:slim-bookworm AS deploy
FROM python:slim-alpine AS deploy

# Output to stdout/stderr, don't create .pyc files, etc.
ENV PYTHONUNBUFFERED=1 \
Expand All @@ -32,4 +32,4 @@ COPY ./src ./src
HEALTHCHECK --interval=300s --timeout=10s CMD curl -f http://localhost:3000
USER 1001

CMD ["sh", "-c", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "3000", "--workers", "1", "--server-header", "--date-header", "--limit-concurrency", "1000","--log-config", "./logger.conf"]
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "3000", "--workers", "1", "--server-header", "--date-header", "--limit-concurrency", "1000","--log-config", "./logger.conf"]

0 comments on commit 0eb7a75

Please sign in to comment.