Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -11
Dockerfile
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
FROM python:3.9-slim
|
2 |
-
WORKDIR /app
|
3 |
-
COPY . .
|
4 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
5 |
-
RUN mkdir -p static/uploads static/audio && \
|
6 |
-
touch feedback.json && \
|
7 |
-
chmod -R 777 static && \
|
8 |
-
chmod 666 feedback.json
|
9 |
-
RUN adduser --disabled-password --gecos '' appuser
|
10 |
-
USER appuser
|
11 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
WORKDIR /app
|
3 |
+
COPY . .
|
4 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
5 |
+
RUN mkdir -p static/uploads static/audio && \
|
6 |
+
touch feedback.json && \
|
7 |
+
chmod -R 777 static && \
|
8 |
+
chmod 666 feedback.json
|
9 |
+
RUN adduser --disabled-password --gecos '' appuser
|
10 |
+
USER appuser
|
11 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|