Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -27,16 +27,16 @@ RUN apt-get update && apt-get install -y \
|
|
27 |
RUN mkdir -p /tmp/uploads /tmp/results /tmp/huggingface/transformers /tmp/huggingface/datasets \
|
28 |
&& chmod -R 777 /tmp/uploads /tmp/results /tmp/huggingface
|
29 |
|
|
|
30 |
COPY requirements.txt .
|
31 |
-
RUN
|
32 |
-
|
33 |
-
/venv/bin/pip install --no-cache-dir -r requirements.txt
|
34 |
|
35 |
|
36 |
|
37 |
COPY app.py .
|
38 |
|
39 |
-
|
40 |
|
41 |
EXPOSE 7860
|
42 |
|
|
|
27 |
RUN mkdir -p /tmp/uploads /tmp/results /tmp/huggingface/transformers /tmp/huggingface/datasets \
|
28 |
&& chmod -R 777 /tmp/uploads /tmp/results /tmp/huggingface
|
29 |
|
30 |
+
# Copy requirements file and install dependencies
|
31 |
COPY requirements.txt .
|
32 |
+
RUN pip install --no-cache-dir -U pip && \
|
33 |
+
pip install --no-cache-dir -r requirements.txt
|
|
|
34 |
|
35 |
|
36 |
|
37 |
COPY app.py .
|
38 |
|
39 |
+
|
40 |
|
41 |
EXPOSE 7860
|
42 |
|