Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
@@ -4,15 +4,14 @@ FROM python:3.9-slim
|
|
4 |
# Set the working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Copy
|
8 |
-
COPY
|
9 |
-
COPY app.py ./
|
10 |
|
11 |
# Install dependencies
|
12 |
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
|
14 |
-
# Expose the port
|
15 |
EXPOSE 7860
|
16 |
|
17 |
-
#
|
18 |
CMD ["python", "app.py"]
|
|
|
4 |
# Set the working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Copy files
|
8 |
+
COPY . .
|
|
|
9 |
|
10 |
# Install dependencies
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
+
# Expose the correct port
|
14 |
EXPOSE 7860
|
15 |
|
16 |
+
# Run with debug mode to catch errors
|
17 |
CMD ["python", "app.py"]
|