jake2004 commited on
Commit
f8e0442
·
verified ·
1 Parent(s): 6554fd7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -12
Dockerfile CHANGED
@@ -1,19 +1,8 @@
1
- # Use official Python image
2
  FROM python:3.9
3
 
4
- # Set the working directory
5
  WORKDIR /app
6
-
7
- # Copy the necessary files
8
  COPY requirements.txt .
9
- COPY app.py .
10
- COPY templates ./templates
11
-
12
- # Install dependencies
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- # Expose the Flask port
16
- EXPOSE 7860
17
-
18
- # Run the Flask app
19
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
 
 
1
  FROM python:3.9
2
 
 
3
  WORKDIR /app
 
 
4
  COPY requirements.txt .
 
 
 
 
5
  RUN pip install --no-cache-dir -r requirements.txt
6
 
7
+ COPY . .
 
 
 
8
  CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]