Skip to content

Commit

Permalink
Add root-path to uvicorn run command
Browse files Browse the repository at this point in the history
  • Loading branch information
BielStela committed Dec 16, 2024
1 parent 26d2f4c commit 87ab5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 8000

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--root-path", "/api/"]

FROM production as development

Expand Down

0 comments on commit 87ab5f1

Please sign in to comment.