sikeaditya commited on
Commit
192c251
·
verified ·
1 Parent(s): 951e2bc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 only necessary files
8
- COPY requirements.txt ./
9
- COPY app.py ./
10
 
11
  # Install dependencies
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- # Expose the port your app runs on
15
  EXPOSE 7860
16
 
17
- # Set the command to run your application
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"]