thanhnv2323 commited on
Commit
ee2f1ad
·
1 Parent(s): c46a589

feat: update start docker file

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -2,8 +2,10 @@ FROM tiangolo/uvicorn-gunicorn:python3.10
2
 
3
  RUN apt update && \
4
  apt install -y htop libgl1-mesa-glx libglib2.0-0
5
-
6
  COPY requirements.txt /tmp/requirements.txt
7
  RUN pip install --no-cache-dir -r /tmp/requirements.txt
8
 
9
- CMD ["uvicorn", "main:app", "--reload", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
2
 
3
  RUN apt update && \
4
  apt install -y htop libgl1-mesa-glx libglib2.0-0
 
5
  COPY requirements.txt /tmp/requirements.txt
6
  RUN pip install --no-cache-dir -r /tmp/requirements.txt
7
 
8
+ #ENTRYPOINT
9
+ CMD uvicorn main:app --reload --host 0.0.0.0 --port 7860
10
+
11
+ #CMD ["uvicorn", "main:app", "--reload", "--host", "0.0.0.0", "--port", "7860"]