kingtest commited on
Commit
f62ab8d
·
verified ·
1 Parent(s): ac33270

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -2,9 +2,12 @@ FROM node:lts AS BUILD_IMAGE
2
 
3
  WORKDIR /app
4
 
5
- RUN apk add --no-cache git && \
 
 
6
  git clone https://github.com/LLM-Red-Team/glm-free-api.git /app && \
7
- apk del git
 
8
 
9
  RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
10
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # 更新软件包源,安装git,然后删除不再需要的包和缓存
6
+ RUN apt-get update && \
7
+ apt-get install -y git && \
8
  git clone https://github.com/LLM-Red-Team/glm-free-api.git /app && \
9
+ apt-get remove -y git && \
10
+ apt-get autoremove -y
11
 
12
  RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
13