Commit
•
7773295
1
Parent(s):
04435e8
attempt 7 to resolve permission error
Browse files- Dockerfile +10 -10
Dockerfile
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
FROM bitnami/pytorch
|
2 |
|
3 |
-
RUN
|
4 |
-
WORKDIR /
|
5 |
|
6 |
-
COPY ./requirements.txt /
|
7 |
|
8 |
-
RUN pip install --no-cache-dir -r /
|
9 |
|
10 |
-
RUN mkdir
|
11 |
-
RUN mkdir
|
12 |
-
ENV HUGGINGFACE_HUB_CACHE="/
|
13 |
-
RUN mkdir
|
14 |
-
ENV TRANSFORMERS_CACHE="/
|
15 |
|
16 |
-
COPY . /
|
17 |
|
18 |
CMD ["streamlit", "run", "/app/app.py"]
|
|
|
1 |
FROM bitnami/pytorch
|
2 |
|
3 |
+
RUN chmod -R 700 /app
|
4 |
+
WORKDIR /app
|
5 |
|
6 |
+
COPY ./requirements.txt /app/requirements.txt
|
7 |
|
8 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
9 |
|
10 |
+
RUN mkdir "/app/.cache/"
|
11 |
+
RUN mkdir "/app/.cache/huggingface/"
|
12 |
+
ENV HUGGINGFACE_HUB_CACHE="/app/.cache/huggingface"
|
13 |
+
RUN mkdir "/app/.cache/transformers/"
|
14 |
+
ENV TRANSFORMERS_CACHE="/app/.cache/transformers"
|
15 |
|
16 |
+
COPY . /app
|
17 |
|
18 |
CMD ["streamlit", "run", "/app/app.py"]
|