Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Mar 20, 2024
1 parent 47769e1 commit 0ba52a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Based on https://dev.to/farcellier/package-a-poetry-project-in-a-docker-container-for-production-3b4m
# and https://stackoverflow.com/questions/53835198/integrating-python-poetry-with-docker
ARG BUILDPLATFORM=linux/amd64
FROM --platform=$BUILDPLATFORM python:3.11-slim-bookworm AS base
FROM --platform=$BUILDPLATFORM python:3.12-slim-bookworm AS base

ENV PANDOC_VERSION=3.1.12.3
ENV POETRY_VERSION=1.7.1
Expand All @@ -24,5 +24,4 @@ RUN poetry install --without dev

EXPOSE 8080

# CMD ["hypercorn", "-b", "0.0.0.0:5000", "api:app"]
CMD ["poetry", "run", "hypercorn", "-b", "0.0.0.0:8080", "api:app"]

0 comments on commit 0ba52a7

Please sign in to comment.