Quellcode durchsuchen

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
myhloli vor 10 Monaten
Ursprung
Commit
a3de866d2c
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      README.md
  2. 1 1
      README_zh-CN.md

+ 1 - 1
README.md

@@ -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
   ```
 

+ 1 - 1
README_zh-CN.md

@@ -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