zain2003 commited on
Commit
13e4d47
·
verified ·
1 Parent(s): d9bbfb8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -11
Dockerfile CHANGED
@@ -1,20 +1,11 @@
1
- # Use the official Python image as a base image
2
  FROM python:3.11-slim
3
 
4
- # Set the working directory
5
  WORKDIR /app
6
 
7
- # Copy the local packages directory to the Docker image
8
- COPY packages /packages
9
-
10
- # Copy the requirements file to the Docker image
11
  COPY requirements.txt .
12
 
13
- # Install the dependencies using the local cache
14
- RUN pip install --no-index --find-links=/packages -r requirements.txt
15
 
16
- # Copy the rest of your application code to the Docker image
17
  COPY . .
18
 
19
- # Set the command to run your application
20
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.11-slim
2
 
 
3
  WORKDIR /app
4
 
 
 
 
 
5
  COPY requirements.txt .
6
 
7
+ RUN pip install --no-cache-dir -r requirements.txt
 
8
 
 
9
  COPY . .
10
 
11
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]