Commit a3de866d authored by myhloli's avatar myhloli
Browse files

docs(readme): update Docker commands to auto-activate virtual environment

- 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
parent cc62ae8b
...@@ -288,7 +288,7 @@ If your device supports CUDA and meets the GPU requirements of the mainline envi ...@@ -288,7 +288,7 @@ If your device supports CUDA and meets the GPU requirements of the mainline envi
```bash ```bash
wget https://github.com/opendatalab/MinerU/raw/master/docker/global/Dockerfile -O Dockerfile wget https://github.com/opendatalab/MinerU/raw/master/docker/global/Dockerfile -O Dockerfile
docker build -t mineru:latest . 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 magic-pdf --help
``` ```
......
...@@ -293,7 +293,7 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h ...@@ -293,7 +293,7 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
```bash ```bash
wget https://gitee.com/myhloli/MinerU/raw/master/docker/china/Dockerfile -O Dockerfile wget https://gitee.com/myhloli/MinerU/raw/master/docker/china/Dockerfile -O Dockerfile
docker build -t mineru:latest . 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 magic-pdf --help
``` ```
### 使用NPU ### 使用NPU
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment