Skip to content

Commit

Permalink
docs(readme): update Docker commands to auto-activate virtual environ…
Browse files Browse the repository at this point in the history
…ment

- Update Docker run command in both README.md and README_zh-CN.md
- Add command to automatically activate the virtual environment upon container start
- Ensure users have the correct environment setup when accessing the container
  • Loading branch information
myhloli committed Jan 6, 2025
1 parent cc62ae8 commit a3de866
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ If your device supports CUDA and meets the GPU requirements of the mainline envi
```bash
wget https://github.com/opendatalab/MinerU/raw/master/docker/global/Dockerfile -O Dockerfile
docker build -t mineru:latest .
docker run --rm -it --gpus=all mineru:latest /bin/bash
docker run --rm -it --gpus=all mineru:latest /bin/bash -c "echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash"
magic-pdf --help
```
Expand Down
2 changes: 1 addition & 1 deletion README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
```bash
wget https://gitee.com/myhloli/MinerU/raw/master/docker/china/Dockerfile -O Dockerfile
docker build -t mineru:latest .
docker run --rm -it --gpus=all mineru:latest /bin/bash
docker run --rm -it --gpus=all mineru:latest /bin/bash -c "echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash"
magic-pdf --help
```
### 使用NPU
Expand Down

0 comments on commit a3de866

Please sign in to comment.