huy00001 commited on
Commit
8d55235
·
verified ·
1 Parent(s): 985a0d6

Update Dockerfile

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