zerodeity
commited on
Commit
·
31c2527
1
Parent(s):
067b657
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -7,8 +7,8 @@ WORKDIR /usr/src/app
|
|
7 |
# 更新 npm 版本到 9
|
8 |
RUN npm install npm@9 -g
|
9 |
|
10 |
-
# 使用 apt 安装 git
|
11 |
-
RUN apt update && apt install -y git
|
12 |
|
13 |
# 克隆源代码到工作目录
|
14 |
RUN git clone https://github.com/louislam/uptime-kuma .
|
|
|
7 |
# 更新 npm 版本到 9
|
8 |
RUN npm install npm@9 -g
|
9 |
|
10 |
+
# 使用 apt 安装 git 并清除缓存以减小镜像大小
|
11 |
+
RUN apt update && apt install -y git && rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
# 克隆源代码到工作目录
|
14 |
RUN git clone https://github.com/louislam/uptime-kuma .
|