next-playground commited on
Commit
f4b6a0a
·
verified ·
1 Parent(s): 8a88047

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -8,7 +8,7 @@ WORKDIR /tmp/app
8
  COPY . /tmp/app
9
 
10
  # 安装依赖
11
- RUN pip install --no-cache-dir gunicorn
12
  RUN pip install --no-cache-dir -r requirements.txt
13
  RUN pip install 'numpy==1.26.4'
14
 
@@ -19,4 +19,4 @@ RUN mkdir separated
19
  EXPOSE 5000
20
 
21
  # 运行应用程序
22
- CMD ["sudo", "gunicorn", "-b", "0.0.0.0:5000", "--timeout", "300", "app:app"]
 
8
  COPY . /tmp/app
9
 
10
  # 安装依赖
11
+ RUN pip install gunicorn
12
  RUN pip install --no-cache-dir -r requirements.txt
13
  RUN pip install 'numpy==1.26.4'
14
 
 
19
  EXPOSE 5000
20
 
21
  # 运行应用程序
22
+ CMD ["gunicorn", "-b", "0.0.0.0:5000", "--timeout", "300", "app:app"]