Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -6
Dockerfile
CHANGED
|
@@ -16,11 +16,12 @@ RUN pip install --upgrade pip && pip install -r requirements.txt
|
|
| 16 |
# Copy the rest of the application code into the container
|
| 17 |
COPY . .
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
| 16 |
# Copy the rest of the application code into the container
|
| 17 |
COPY . .
|
| 18 |
|
| 19 |
+
# Run the application
|
| 20 |
+
COPY . /app/
|
| 21 |
|
| 22 |
+
ENV FLASK_APP=app.py \
|
| 23 |
+
FLASK_ENV=production
|
| 24 |
|
| 25 |
+
EXPOSE 7860
|
| 26 |
+
|
| 27 |
+
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]
|