Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -14,7 +14,8 @@ RUN apt-get update && apt-get install -y \
|
|
14 |
&& rm -rf /var/lib/apt/lists/* \
|
15 |
&& git lfs install \
|
16 |
apt-get install nvidia-container-runtime
|
17 |
-
|
|
|
18 |
WORKDIR /code
|
19 |
|
20 |
COPY ./requirements.txt /code/requirements.txt
|
@@ -35,9 +36,7 @@ RUN pyenv install $PYTHON_VERSION && \
|
|
35 |
pyenv global $PYTHON_VERSION && \
|
36 |
pyenv rehash && \
|
37 |
pip install --no-cache-dir --upgrade pip setuptools wheel && \
|
38 |
-
pip install --no-cache-dir
|
39 |
-
datasets \
|
40 |
-
huggingface-hub "protobuf<4" "click<8.1"
|
41 |
|
42 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
43 |
# PyTorch installation with CUDA 12.1 support
|
|
|
14 |
&& rm -rf /var/lib/apt/lists/* \
|
15 |
&& git lfs install \
|
16 |
apt-get install nvidia-container-runtime
|
17 |
+
|
18 |
+
ENV FORCE_CUDA="1"
|
19 |
WORKDIR /code
|
20 |
|
21 |
COPY ./requirements.txt /code/requirements.txt
|
|
|
36 |
pyenv global $PYTHON_VERSION && \
|
37 |
pyenv rehash && \
|
38 |
pip install --no-cache-dir --upgrade pip setuptools wheel && \
|
39 |
+
pip install --no-cache-dir
|
|
|
|
|
40 |
|
41 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
42 |
# PyTorch installation with CUDA 12.1 support
|