Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +1 -6
Dockerfile
CHANGED
@@ -2,11 +2,6 @@
|
|
2 |
# Using a specific version like 3.10 or 3.11 is recommended over 'latest'
|
3 |
FROM python:3.10-slim
|
4 |
|
5 |
-
# Set environment variables
|
6 |
-
ENV PYTHONDONTWRITEBYTECODE 1 # Prevents python from writing .pyc files
|
7 |
-
ENV PYTHONUNBUFFERED 1 # Ensures logs print directly to terminal
|
8 |
-
ENV PORT=7860 # Define the port the app will run on *inside* the container
|
9 |
-
|
10 |
# Set the working directory in the container
|
11 |
WORKDIR /app
|
12 |
|
@@ -26,7 +21,7 @@ COPY . .
|
|
26 |
|
27 |
# Expose the port the app runs on
|
28 |
# This informs Docker that the container listens on this port
|
29 |
-
EXPOSE
|
30 |
|
31 |
# Define the command to run the application
|
32 |
# Use 0.0.0.0 to listen on all network interfaces inside the container
|
|
|
2 |
# Using a specific version like 3.10 or 3.11 is recommended over 'latest'
|
3 |
FROM python:3.10-slim
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
# Set the working directory in the container
|
6 |
WORKDIR /app
|
7 |
|
|
|
21 |
|
22 |
# Expose the port the app runs on
|
23 |
# This informs Docker that the container listens on this port
|
24 |
+
EXPOSE 7860
|
25 |
|
26 |
# Define the command to run the application
|
27 |
# Use 0.0.0.0 to listen on all network interfaces inside the container
|