Skip to content

Commit

Permalink
refactor: Update Dockerfile.development to use uvicorn for running th…
Browse files Browse the repository at this point in the history
…e app
  • Loading branch information
luthfiarifin committed Sep 16, 2024
1 parent 6f86ae4 commit 80f315d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ COPY ./app ./app
# Install FastAPI separately to leverage Docker cache
RUN pip install "fastapi[standard]"

CMD ["fastapi", "dev", "main.py", "--port", "8080", '--host', '0.0.0.0']
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080", "--reload"]

0 comments on commit 80f315d

Please sign in to comment.