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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -1,20 +1,17 @@
1
  # 使用官方 Python 运行时作为父镜像
2
- FROM python:3.10-slim
3
 
4
  # 设置工作目录
5
- WORKDIR /tmp/app
6
 
7
  # 将代码复制到容器中
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
 
15
- # 准备文件夹
16
- RUN mkdir separated
17
-
18
  # 暴露端口
19
  EXPOSE 5000
20
 
 
1
  # 使用官方 Python 运行时作为父镜像
2
+ FROM python:3.10
3
 
4
  # 设置工作目录
5
+ WORKDIR /app
6
 
7
  # 将代码复制到容器中
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
17