mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Bind to the host to allow connections in FastAPI Docker example (#6753)
This wouldn't allow connections as written
This commit is contained in:
parent
37e29f1109
commit
451eef31a6
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ WORKDIR /app
|
|||
RUN uv sync --frozen --no-cache
|
||||
|
||||
# Run the application.
|
||||
CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--port", "80"]
|
||||
CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--port", "80", "--host", "0.0.0.0"]
|
||||
```
|
||||
|
||||
For more on using uv with Docker, see the [Docker guide](./docker.md).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue