Skip to content

Commit

Permalink
fix railway docker deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gleasonw committed Feb 29, 2024
1 parent 0c2177b commit 3c5098c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#
FROM python:3.11

# read in port from env
ARG PORT=8000
#
WORKDIR /app

Expand All @@ -14,4 +16,4 @@ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
COPY ./app /app/app

#
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]j
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "${PORT}"]

0 comments on commit 3c5098c

Please sign in to comment.