chmod
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -11,11 +11,12 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
11 |
|
12 |
COPY . .
|
13 |
|
14 |
-
# RUN mkdir -p
|
15 |
### Update permissions for the app
|
16 |
-
|
17 |
# RUN chmod 777 $PWD
|
18 |
-
|
|
|
19 |
|
20 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
21 |
# CMD [ "python", "app.py" ]
|
|
|
11 |
|
12 |
COPY . .
|
13 |
|
14 |
+
# RUN mkdir -p /cache
|
15 |
### Update permissions for the app
|
16 |
+
USER root
|
17 |
# RUN chmod 777 $PWD
|
18 |
+
RUN chmod 777 /
|
19 |
+
USER user
|
20 |
|
21 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
22 |
# CMD [ "python", "app.py" ]
|