Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -19,9 +19,11 @@ COPY requirements.txt .
|
|
| 19 |
# Install Python dependencies
|
| 20 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 21 |
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Make port 7860 available to the world outside this container
|
| 24 |
EXPOSE 7860
|
| 25 |
|
| 26 |
# Run the application using gunicorn
|
| 27 |
-
CMD gunicorn --bind 0.0.0.0:7860 app:app
|
|
|
|
| 19 |
# Install Python dependencies
|
| 20 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 21 |
|
| 22 |
+
# Copy only the necessary files
|
| 23 |
+
COPY app.py /code/app.py
|
| 24 |
|
| 25 |
# Make port 7860 available to the world outside this container
|
| 26 |
EXPOSE 7860
|
| 27 |
|
| 28 |
# Run the application using gunicorn
|
| 29 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|