Spaces:
Sleeping
Sleeping
Commit
·
6f430f4
1
Parent(s):
d022305
trying to fix permission folder ./cache
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -16,6 +16,10 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
16 |
# Instruction COPY, will create destination folder (this case "src") if didnt exist.
|
17 |
COPY . /code/src
|
18 |
|
|
|
|
|
|
|
|
|
19 |
# cause working dir it set from /code
|
20 |
# and we have code in /code/src
|
21 |
# for running command we user fastapi in "src.main:app"
|
|
|
16 |
# Instruction COPY, will create destination folder (this case "src") if didnt exist.
|
17 |
COPY . /code/src
|
18 |
|
19 |
+
# make Folder cache and open permission for it
|
20 |
+
RUN mkdir -p /.cache
|
21 |
+
RUN chmod 777 /.cache
|
22 |
+
|
23 |
# cause working dir it set from /code
|
24 |
# and we have code in /code/src
|
25 |
# for running command we user fastapi in "src.main:app"
|