Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|