Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
|
|
|
|
|
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
|
@@ -8,4 +10,8 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
CMD gunicorn -w 4 -b 0.0.0.0:7860 app:app
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
+
RUN useradd -m -u 1000 user
|
| 4 |
+
|
| 5 |
WORKDIR /code
|
| 6 |
|
| 7 |
COPY ./requirements.txt /code/requirements.txt
|
|
|
|
| 10 |
|
| 11 |
COPY . .
|
| 12 |
|
| 13 |
+
RUN mkdir /blabla/cache
|
| 14 |
+
|
| 15 |
+
RUN chown user:user -R /blabla/cache
|
| 16 |
+
|
| 17 |
CMD gunicorn -w 4 -b 0.0.0.0:7860 app:app
|