Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
-
# Set
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
-
# Copy
|
| 7 |
COPY . /app
|
| 8 |
|
| 9 |
# Install dependencies
|
| 10 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
|
| 12 |
-
# Expose
|
| 13 |
EXPOSE 7860
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
CMD ["gunicorn", "-
|
|
|
|
| 1 |
+
# Use Python as base image
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
+
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Copy files to container
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
+
# Expose port 7860
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
+
# Command to run Flask app
|
| 17 |
+
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|