Spaces:
Configuration error
Configuration error
Update Dockerfile
Browse files- Dockerfile +9 -7
Dockerfile
CHANGED
|
@@ -1,17 +1,19 @@
|
|
| 1 |
-
# Use
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
-
# Set the working directory
|
| 5 |
WORKDIR /code
|
| 6 |
|
| 7 |
-
# Copy
|
| 8 |
COPY requirements.txt .
|
| 9 |
-
|
| 10 |
-
# Install any dependencies
|
| 11 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 12 |
|
| 13 |
-
# Copy the
|
| 14 |
COPY . .
|
| 15 |
|
| 16 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
# Use a standard Python 3.10 image.
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
+
# Set the working directory
|
| 5 |
WORKDIR /code
|
| 6 |
|
| 7 |
+
# Copy and install requirements
|
| 8 |
COPY requirements.txt .
|
|
|
|
|
|
|
| 9 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 10 |
|
| 11 |
+
# Copy the application code
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
+
# IMPORTANT: Expose the port our webhook server needs to listen on.
|
| 15 |
+
# The file you linked was missing this line.
|
| 16 |
+
EXPOSE 7860
|
| 17 |
+
|
| 18 |
+
# Command to run the application
|
| 19 |
CMD ["python", "app.py"]
|