mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
Address feedback for Docker integration guide (#6235)
This commit is contained in:
parent
fac2cb8aac
commit
4b501a1393
1 changed files with 3 additions and 3 deletions
|
@ -74,13 +74,13 @@ ENV PATH="/app/.venv/bin:$PATH"
|
|||
|
||||
Or, you can use `uv run` to run commands in the environment:
|
||||
|
||||
```dockerfile
|
||||
RUN uv run /app/some_script.py
|
||||
```dockerfile title="Dockerfile"
|
||||
RUN uv run some_script.py
|
||||
```
|
||||
|
||||
And, to start your application by default:
|
||||
|
||||
```dockerfile
|
||||
```dockerfile title="Dockerfile"
|
||||
# Presuming there is a `my_app` command provided by the project
|
||||
CMD ["uv", "run", "my_app"]
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue