pranit144 commited on
Commit
f1d29f8
·
verified ·
1 Parent(s): 9c7aceb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -4,8 +4,8 @@ FROM python:3.9-slim
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
- # Copy application files
8
- COPY /app
9
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
@@ -14,4 +14,4 @@ RUN pip install --no-cache-dir -r requirements.txt
14
  EXPOSE 7860
15
 
16
  # Command to run the application
17
- CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
 
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
+ # Copy application files (copy everything in current dir into /app)
8
+ COPY . /app
9
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
 
14
  EXPOSE 7860
15
 
16
  # Command to run the application
17
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]