zhengr commited on
Commit
1859ccf
·
verified ·
1 Parent(s): 081cfa2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -19,12 +19,13 @@ ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
19
 
20
  # Copy the entry point script
21
  COPY entrypoint.sh /entrypoint.sh
 
22
  RUN chmod +x /entrypoint.sh
23
 
24
  ARG PIP_INDEX=https://pypi.org/simple
25
  RUN python -m pip install --upgrade -i "$PIP_INDEX" pip && \
26
  pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \
27
- pip install -i "$PIP_INDEX" --upgrade-strategy only-if-needed -r /opt/inference/xinference/deploy/docker/requirements_cpu.txt && \
28
  pip install "llama-cpp-python==0.2.77" --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu && \
29
  cd /opt/inference && \
30
  python setup.py build_web && \
 
19
 
20
  # Copy the entry point script
21
  COPY entrypoint.sh /entrypoint.sh
22
+ COPY requirements.txt /requirements.txt
23
  RUN chmod +x /entrypoint.sh
24
 
25
  ARG PIP_INDEX=https://pypi.org/simple
26
  RUN python -m pip install --upgrade -i "$PIP_INDEX" pip && \
27
  pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \
28
+ pip install -i "$PIP_INDEX" --upgrade-strategy only-if-needed -r /requirements_cpu.txt && \
29
  pip install "llama-cpp-python==0.2.77" --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu && \
30
  cd /opt/inference && \
31
  python setup.py build_web && \