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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -7,6 +7,7 @@ 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"]
 
7
 
8
  COPY app.py ./
9
 
10
+ ENV PORT=8000
11
+ EXPOSE ${PORT}
12
 
13
+ CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"]