kingtest commited on
Commit
f7761e4
·
verified ·
1 Parent(s): 537d022

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -6,11 +6,9 @@ ENV TZ=Asia/Shanghai
6
 
7
  WORKDIR /app
8
 
9
- # Install git
10
- RUN apt-get update && apt-get install -y git
11
-
12
- # Clone the repository
13
- RUN git clone https://github.com/Chenyme/oaifree-tools.git /app && \
14
  apk del git
15
 
16
  # Install dependencies
 
6
 
7
  WORKDIR /app
8
 
9
+ # 安装git,克隆仓库,然后移除git以减小镜像体积
10
+ RUN apk add --no-cache git && \
11
+ git clone https://github.com/Chenyme/oaifree-tools.git /app && \
 
 
12
  apk del git
13
 
14
  # Install dependencies