Spaces:
Sleeping
Sleeping
fahadcr14
commited on
Commit
·
6729203
1
Parent(s):
d0c7e75
final
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -10,11 +10,14 @@ WORKDIR /app
|
|
| 10 |
COPY requirements.txt /app/
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
# Copy app files
|
| 14 |
COPY . /app
|
| 15 |
|
| 16 |
# Expose the port Flask will run on
|
| 17 |
EXPOSE 5000
|
| 18 |
|
| 19 |
-
# Run the
|
| 20 |
-
CMD ["
|
|
|
|
| 10 |
COPY requirements.txt /app/
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
+
# Install Gunicorn
|
| 14 |
+
RUN pip install gunicorn
|
| 15 |
+
|
| 16 |
# Copy app files
|
| 17 |
COPY . /app
|
| 18 |
|
| 19 |
# Expose the port Flask will run on
|
| 20 |
EXPOSE 5000
|
| 21 |
|
| 22 |
+
# Run the app with Gunicorn
|
| 23 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
|