Ivan000 commited on
Commit
fa93e8f
·
verified ·
1 Parent(s): 83d7044

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -1,11 +1,7 @@
1
- # Dockerfile
2
  FROM python:3.11-slim
3
-
4
  WORKDIR /app
5
-
6
  COPY requirements.txt .
7
- RUN pip install -r requirements.txt
8
-
9
- COPY . .
10
 
11
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
 
1
  FROM python:3.11-slim
 
2
  WORKDIR /app
 
3
  COPY requirements.txt .
4
+ RUN pip install --no-cache-dir -r requirements.txt
5
+ COPY main.py .
 
6
 
7
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]