mirror of https://github.com/astral-sh/uv
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
|
|
@ -138,7 +138,7 @@ WORKDIR /app
|
||||||
RUN uv sync --frozen --no-cache
|
RUN uv sync --frozen --no-cache
|
||||||
|
|
||||||
# Run the application.
|
# 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).
|
For more on using uv with Docker, see the [Docker guide](./docker.md).
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue