thak123 commited on
Commit
0a04da8
1 Parent(s): ac31e9f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -1
Dockerfile CHANGED
@@ -11,4 +11,16 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  COPY . .
13
 
14
- CMD ["uvicorn", "index:server", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  COPY . .
13
 
14
+ # set enviroment variables
15
+ # This prevent Python from writing out pyc files
16
+ ENV PYTHONDONTWRITEBYTECODE=1
17
+ # This keeps Python from buffering stdin/stdout
18
+ ENV PYTHONUNBUFFERED=1
19
+
20
+ EXPOSE 7000
21
+
22
+
23
+ # CMD ["uvicorn", "index:server", "--host", "0.0.0.0", "--port", "7860"]
24
+
25
+ ENTRYPOINT ["gunicorn", "index:server", "-b", "0.0.0.0:7860", "--workers=1"]
26
+