Aswinthmani commited on
Commit
ada400e
·
verified ·
1 Parent(s): 02400fc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -11
Dockerfile CHANGED
@@ -1,17 +1,9 @@
1
  FROM python:3.9
2
 
3
- # Set working directory
4
  WORKDIR /app
 
5
 
6
- # Install dependencies
7
- COPY requirements.txt .
8
- RUN pip install --no-cache-dir -r requirements.txt
9
 
10
- # Copy application code
11
- COPY main.py .
12
-
13
- # Expose port
14
- EXPOSE 7860
15
-
16
- # Run the app
17
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9
2
 
 
3
  WORKDIR /app
4
+ COPY . /app
5
 
6
+ RUN pip install --no-cache-dir --upgrade pip \
7
+ && pip install --no-cache-dir -r requirements.txt
 
8
 
 
 
 
 
 
 
 
9
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]