Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -8
Dockerfile
CHANGED
@@ -2,13 +2,13 @@ FROM continuumio/miniconda3:23.10.0-1
|
|
2 |
|
3 |
RUN apt update
|
4 |
RUN apt install git
|
5 |
-
RUN git clone https://github.com/xorbitsai/inference.git
|
|
|
|
|
6 |
|
7 |
ENV NVM_DIR /usr/local/nvm
|
8 |
ENV NODE_VERSION 14.21.1
|
9 |
|
10 |
-
RUN chmod -R 777 /home/user
|
11 |
-
|
12 |
RUN apt-get -y update \
|
13 |
&& apt install -y build-essential curl procps git libgl1 \
|
14 |
&& mkdir -p $NVM_DIR \
|
@@ -21,16 +21,13 @@ RUN apt-get -y update \
|
|
21 |
|
22 |
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
23 |
|
24 |
-
WORKDIR opt/inference
|
25 |
-
|
26 |
# Copy the entry point script
|
27 |
-
COPY entrypoint.sh /
|
28 |
-
RUN chmod +x /home/user/app/entrypoint.sh
|
29 |
|
30 |
ARG PIP_INDEX=https://pypi.org/simple
|
31 |
RUN python -m pip install --upgrade -i "$PIP_INDEX" pip && \
|
32 |
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \
|
33 |
-
pip install -i "$PIP_INDEX" --upgrade-strategy only-if-needed -r
|
34 |
pip install "llama-cpp-python==0.2.77" --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu && \
|
35 |
cd /opt/inference && \
|
36 |
python setup.py build_web && \
|
|
|
2 |
|
3 |
RUN apt update
|
4 |
RUN apt install git
|
5 |
+
RUN git clone https://github.com/xorbitsai/inference.git
|
6 |
+
RUN cd inference
|
7 |
+
WORKDIR inference
|
8 |
|
9 |
ENV NVM_DIR /usr/local/nvm
|
10 |
ENV NODE_VERSION 14.21.1
|
11 |
|
|
|
|
|
12 |
RUN apt-get -y update \
|
13 |
&& apt install -y build-essential curl procps git libgl1 \
|
14 |
&& mkdir -p $NVM_DIR \
|
|
|
21 |
|
22 |
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
23 |
|
|
|
|
|
24 |
# Copy the entry point script
|
25 |
+
COPY ./entrypoint.sh inference/entrypoint.sh
|
|
|
26 |
|
27 |
ARG PIP_INDEX=https://pypi.org/simple
|
28 |
RUN python -m pip install --upgrade -i "$PIP_INDEX" pip && \
|
29 |
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \
|
30 |
+
pip install -i "$PIP_INDEX" --upgrade-strategy only-if-needed -r inference/xinference/deploy/docker/requirements_cpu.txt && \
|
31 |
pip install "llama-cpp-python==0.2.77" --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu && \
|
32 |
cd /opt/inference && \
|
33 |
python setup.py build_web && \
|