Skip to content

Commit

Permalink
reference port env in dockerfile run
Browse files Browse the repository at this point in the history
  • Loading branch information
gleasonw committed Sep 29, 2024
1 parent b508e07 commit 7a8ed2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,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", "8080"]
CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8080}"]

0 comments on commit 7a8ed2c

Please sign in to comment.