Skip to content

Commit

Permalink
Merge pull request #5 from Warhorze/master
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
michaeloliverx authored May 5, 2024
2 parents f7241bf + accc89e commit 1d90e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN apt-get update \

# Install Poetry - respects $POETRY_VERSION & $POETRY_HOME
ENV POETRY_VERSION=1.0.5
RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
RUN curl -sSL https://install.python-poetry.org | python3 -

# We copy our Python requirements here to cache them
# and install only runtime deps using poetry
Expand Down Expand Up @@ -58,7 +58,7 @@ COPY . .

EXPOSE 8000
ENTRYPOINT /docker-entrypoint.sh $0 $@
CMD ["uvicorn", "--reload", "--host=0.0.0.0", "--port=8000", "main:app"]
CMD ["poetry", "run", "uvicorn", "app.main:app", "--host=0.0.0.0", "--port=8000", "--reload"]


# 'lint' stage runs black and isort
Expand Down

0 comments on commit 1d90e6b

Please sign in to comment.