jer6 commited on
Commit
6ee9053
·
verified ·
1 Parent(s): 2698386

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -36,7 +36,9 @@ PY
36
 
37
 
38
  COPY app ./app
39
- EXPOSE 8000
40
 
 
 
41
 
42
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]
 
 
36
 
37
 
38
  COPY app ./app
 
39
 
40
+ ENV PORT=7860
41
+ EXPOSE 7860
42
 
43
+
44
+ CMD [ "sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT}" ]