Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +14 -7
Dockerfile
CHANGED
|
@@ -1,14 +1,21 @@
|
|
| 1 |
-
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
-
|
|
|
|
| 11 |
|
| 12 |
-
EXPOSE 7860
|
| 13 |
|
| 14 |
-
CMD ["
|
|
|
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
+
# Set the working directory
|
| 4 |
+
WORKDIR /app
|
| 5 |
+
|
| 6 |
+
# Install supervisor
|
| 7 |
+
RUN apt-get update && apt-get install -y supervisor
|
| 8 |
|
| 9 |
+
# Copy requirements and install Python dependencies
|
| 10 |
+
COPY requirements.txt /app/
|
| 11 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 12 |
|
| 13 |
+
# Copy the rest of the application
|
| 14 |
+
COPY . /app/
|
| 15 |
|
| 16 |
+
# Supervisor configuration
|
| 17 |
+
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
| 18 |
|
| 19 |
+
EXPOSE 7860 5001
|
| 20 |
|
| 21 |
+
CMD ["/usr/bin/supervisord"]
|