BBrother commited on
Commit
c26febb
1 Parent(s): 09e4e71

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # 使用基础镜像
2
- FROM golang:alpine AS builder
3
 
4
  # 设置工作目录
5
  WORKDIR /app
@@ -8,16 +8,15 @@ WORKDIR /app
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
- # 安装Python和依赖
12
- RUN apk add --no-cache python3 py3-pip \
13
- && pip3 install --upgrade pip \
14
- && pip3 install -r requirements.txt
15
-
16
  # 从密钥中获取.env内容并写入.env文件
17
  RUN --mount=type=secret,id=ENV,dst=/etc/secrets/ENV \
18
  cat /etc/secrets/ENV > .env \
19
  && chmod 777 .env
20
 
 
 
 
 
21
  # 暴露端口
22
  EXPOSE 7860
23
 
 
1
  # 使用基础镜像
2
+ FROM python:3.8-alpine
3
 
4
  # 设置工作目录
5
  WORKDIR /app
 
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