Spaces:
Runtime error
Runtime error
Modified dockerfile
Browse files- Dockerfile +15 -6
Dockerfile
CHANGED
@@ -1,17 +1,26 @@
|
|
1 |
-
|
|
|
2 |
FROM python:3.9
|
3 |
|
4 |
-
|
5 |
WORKDIR /code
|
6 |
|
7 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
-
|
11 |
-
|
|
|
12 |
|
13 |
#
|
14 |
COPY ./src /code/src
|
15 |
|
16 |
#
|
17 |
-
CMD ["
|
|
|
|
1 |
+
|
2 |
+
|
3 |
FROM python:3.9
|
4 |
|
5 |
+
|
6 |
WORKDIR /code
|
7 |
|
8 |
+
# Create a writable directory for the cache
|
9 |
+
RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache
|
10 |
+
|
11 |
+
# Set the TRANSFORMERS_CACHE environment variable
|
12 |
+
ENV TRANSFORMERS_CACHE /.cache/huggingface/hub
|
13 |
+
|
14 |
+
|
15 |
COPY ./requirements.txt /code/requirements.txt
|
16 |
|
17 |
+
RUN pip3 install --upgrade pip
|
18 |
+
|
19 |
+
RUN pip3 install -r requirements.txt
|
20 |
|
21 |
#
|
22 |
COPY ./src /code/src
|
23 |
|
24 |
#
|
25 |
+
CMD ["streamlit","run","src.app.app.py", "--host", "0.0.0.0", "--port", "7860"]
|
26 |
+
|