mirror of https://github.com/astral-sh/uv
Address feedback for Docker integration guide (#6235)
This commit is contained in:
parent
fac2cb8aac
commit
4b501a1393
|
|
@ -74,13 +74,13 @@ ENV PATH="/app/.venv/bin:$PATH"
|
||||||
|
|
||||||
Or, you can use `uv run` to run commands in the environment:
|
Or, you can use `uv run` to run commands in the environment:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile title="Dockerfile"
|
||||||
RUN uv run /app/some_script.py
|
RUN uv run some_script.py
|
||||||
```
|
```
|
||||||
|
|
||||||
And, to start your application by default:
|
And, to start your application by default:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile title="Dockerfile"
|
||||||
# Presuming there is a `my_app` command provided by the project
|
# Presuming there is a `my_app` command provided by the project
|
||||||
CMD ["uv", "run", "my_app"]
|
CMD ["uv", "run", "my_app"]
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue