Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -2,9 +2,12 @@ FROM node:lts AS BUILD_IMAGE
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
-
|
|
|
|
|
6 |
git clone https://github.com/LLM-Red-Team/glm-free-api.git /app && \
|
7 |
-
|
|
|
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 |
|