mirror of https://github.com/astral-sh/uv
Fix docker contributing instructions (#774)
This commit is contained in:
parent
9b77a8873e
commit
d964e6848b
|
|
@ -5,10 +5,10 @@
|
||||||
Source distributions can run arbitrary code on build and can make unwanted modifications to your system (https://moyix.blogspot.com/2022/09/someones-been-messing-with-my-subnormals.html, https://pypi.org/project/nvidia-pyindex/), which can even occur when just resolving requirements. To prevent this, there's a Docker container you can run commands in:
|
Source distributions can run arbitrary code on build and can make unwanted modifications to your system (https://moyix.blogspot.com/2022/09/someones-been-messing-with-my-subnormals.html, https://pypi.org/project/nvidia-pyindex/), which can even occur when just resolving requirements. To prevent this, there's a Docker container you can run commands in:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker buildx build -t puffin-builder -f builder.dockerfile .
|
docker buildx build -t puffin-builder -f builder.dockerfile --load .
|
||||||
# Build for musl to avoid glibc errors, might not be required with your OS version
|
# Build for musl to avoid glibc errors, might not be required with your OS version
|
||||||
cargo build --target x86_64-unknown-linux-musl
|
cargo build --target x86_64-unknown-linux-musl --profile profiling --features vendored-openssl
|
||||||
docker run --rm -it -v $(pwd):/app puffin-builder /app/target/x86_64-unknown-linux-musl/debug/puffin-dev resolve-many --cache-dir /app/cache-docker /app/scripts/popular_packages/pypi_10k_most_dependents.txt
|
docker run --rm -it -v $(pwd):/app puffin-builder /app/target/x86_64-unknown-linux-musl/profiling/puffin-dev resolve-many --cache-dir /app/cache-docker /app/scripts/popular_packages/pypi_10k_most_dependents.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
We recommend using this container if you don't trust the dependency tree of the package(s) you are trying to resolve or install.
|
We recommend using this container if you don't trust the dependency tree of the package(s) you are trying to resolve or install.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue