marcosremar2 commited on
Commit
a7907d6
·
1 Parent(s): 9d76a63

Fix shell command in Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -34,12 +34,13 @@ WORKDIR /app
34
  COPY requirements.txt .
35
 
36
  RUN python3 -m venv /opt/mineru_venv && \
37
- source /opt/mineru_venv/bin/activate && \
38
  pip install --upgrade pip && \
39
  pip install -r requirements.txt
40
 
41
  # Download model + setup config
42
  RUN wget https://github.com/opendatalab/MinerU/raw/master/scripts/download_models_hf.py -O download_models.py && \
 
43
  python3 download_models.py && \
44
  wget https://github.com/opendatalab/MinerU/raw/master/magic-pdf.template.json -O /root/magic-pdf.json && \
45
  sed -i 's|"device": "cpu"|"device": "cpu"|g' /root/magic-pdf.json
 
34
  COPY requirements.txt .
35
 
36
  RUN python3 -m venv /opt/mineru_venv && \
37
+ . /opt/mineru_venv/bin/activate && \
38
  pip install --upgrade pip && \
39
  pip install -r requirements.txt
40
 
41
  # Download model + setup config
42
  RUN wget https://github.com/opendatalab/MinerU/raw/master/scripts/download_models_hf.py -O download_models.py && \
43
+ . /opt/mineru_venv/bin/activate && \
44
  python3 download_models.py && \
45
  wget https://github.com/opendatalab/MinerU/raw/master/magic-pdf.template.json -O /root/magic-pdf.json && \
46
  sed -i 's|"device": "cpu"|"device": "cpu"|g' /root/magic-pdf.json