BBrother commited on
Commit
00bb338
1 Parent(s): c26febb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,22 +1,24 @@
1
  # 使用基础镜像
2
- FROM python:3.8-alpine
3
 
4
  # 设置工作目录
5
  WORKDIR /app
6
 
7
  # 克隆代码并初始化子模块
8
- RUN apk update && apk add --no-cache git
9
  RUN git clone https://github.com/Physton/sd-webui-prompt-all-in-one-app.git --recurse-submodules .
10
 
 
 
 
 
 
 
 
11
  # 从密钥中获取.env内容并写入.env文件
12
  RUN --mount=type=secret,id=ENV,dst=/etc/secrets/ENV \
13
  cat /etc/secrets/ENV > .env \
14
  && chmod 777 .env
15
 
16
- # 安装依赖
17
- RUN pip3 install --upgrade pip \
18
- && pip3 install -r requirements.txt
19
-
20
  # 暴露端口
21
  EXPOSE 7860
22
 
 
1
  # 使用基础镜像
2
+ FROM python:3.8
3
 
4
  # 设置工作目录
5
  WORKDIR /app
6
 
7
  # 克隆代码并初始化子模块
 
8
  RUN git clone https://github.com/Physton/sd-webui-prompt-all-in-one-app.git --recurse-submodules .
9
 
10
+ # 安装Python和依赖
11
+ RUN apt-get update \
12
+ && apt-get install -y \
13
+ python3-pip \
14
+ && pip3 install --upgrade pip \
15
+ && pip3 install -r requirements.txt
16
+
17
  # 从密钥中获取.env内容并写入.env文件
18
  RUN --mount=type=secret,id=ENV,dst=/etc/secrets/ENV \
19
  cat /etc/secrets/ENV > .env \
20
  && chmod 777 .env
21
 
 
 
 
 
22
  # 暴露端口
23
  EXPOSE 7860
24