Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -10,8 +10,12 @@ COPY . /app
|
|
| 10 |
# Install any needed packages specified in requirements.txt
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
#
|
|
|
|
|
|
|
|
|
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
-
# Run the application
|
| 17 |
-
|
|
|
|
|
|
| 10 |
# Install any needed packages specified in requirements.txt
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
+
# Install gunicorn
|
| 14 |
+
RUN pip install gunicorn
|
| 15 |
+
|
| 16 |
+
# Make port 7860 available to the world outside this container
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
+
# Run the application with Gunicorn
|
| 20 |
+
# Format: gunicorn -w <workers> -b <bind-address> <module>:<app-instance>
|
| 21 |
+
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "AgriGo.app:app"]
|