Update Dockerfile
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
|
@@ -20,9 +20,15 @@ ENV PIP_ROOT_USER_ACTION=ignore
|
|
| 20 |
COPY requirements.txt .
|
| 21 |
RUN pip install --upgrade pip && pip install --prefix=/app/.local -r requirements.txt
|
| 22 |
ENV PYTHONPATH="/app/.local/lib/python3.7/site-packages:${PYTHONPATH}"
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
RUN chmod -R 777 /.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
COPY . .
|
| 28 |
RUN git config --global --add safe.directory /app/CodeFormer
|
|
|
|
| 20 |
COPY requirements.txt .
|
| 21 |
RUN pip install --upgrade pip && pip install --prefix=/app/.local -r requirements.txt
|
| 22 |
ENV PYTHONPATH="/app/.local/lib/python3.7/site-packages:${PYTHONPATH}"
|
| 23 |
+
|
| 24 |
+
# .local が存在しなければ作成し、その後にパーミッションを変更
|
| 25 |
+
RUN mkdir -p /.local && chmod -R 777 /.local
|
| 26 |
+
|
| 27 |
+
# /usr/local/lib/python3.7 も同様
|
| 28 |
+
RUN mkdir -p /usr/local/lib/python3.7 && chmod -R 777 /usr/local/lib/python3.7
|
| 29 |
+
|
| 30 |
+
# .cache も同様
|
| 31 |
+
RUN mkdir -p /.cache && chmod -R 777 /.cache
|
| 32 |
|
| 33 |
COPY . .
|
| 34 |
RUN git config --global --add safe.directory /app/CodeFormer
|