Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasTiede committed Mar 11, 2021
1 parent f3f1dec commit ba2c979
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 @@
# docker build -t gh-trending-api .
# docker run -p 8000:8000 gh-trending-api:latest
# docker run -p 5000:5000 gh-trending-api:latest

FROM python:3.9.2-alpine3.13

Expand All @@ -19,4 +19,4 @@ RUN apk add --update --no-cache --virtual .build-deps \

COPY ./app ./app

CMD uvicorn app.main:app --host 0.0.0.0 --port $PORT
CMD uvicorn app.main:app --host 0.0.0.0 --port=${PORT:-5000}

0 comments on commit ba2c979

Please sign in to comment.