starkbyte45896 commited on
Commit
67db05b
·
verified ·
1 Parent(s): ac93189

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -9
Dockerfile CHANGED
@@ -1,20 +1,17 @@
1
- # Use official Python image as base
2
  FROM python:3.10
3
 
4
- # Set the working directory
5
  WORKDIR /app
6
 
7
- # Copy the requirements file into the container
8
- COPY requirements.txt .
9
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Copy the rest of the application code
14
- COPY . .
15
-
16
- # Expose port 7860 for Hugging Face Spaces
17
  EXPOSE 7860
18
 
19
- # Set the command to run the application
20
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
 
1
+ # 🐍 Use Python 3.10+ as the base image
2
  FROM python:3.10
3
 
4
+ # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
+ # Copy project files into the container
8
+ COPY . .
9
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Expose port 7860
 
 
 
14
  EXPOSE 7860
15
 
16
+ # Run the Flask app using Gunicorn for production
17
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]