next-playground commited on
Commit
0b414bb
·
verified ·
1 Parent(s): d7c7668

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # 使用官方 Python 运行时作为父镜像
2
- FROM python:3.10
3
 
4
  # 设置工作目录
5
  WORKDIR /app
@@ -8,9 +8,9 @@ WORKDIR /app
8
  COPY . /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
 
15
  # 暴露端口
16
  EXPOSE 5000
 
1
  # 使用官方 Python 运行时作为父镜像
2
+ FROM python:3.10-silm
3
 
4
  # 设置工作目录
5
  WORKDIR /app
 
8
  COPY . /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 --no-cache-dir 'numpy==1.26.4'
14
 
15
  # 暴露端口
16
  EXPOSE 5000