Skip to content

Commit b30d6af

Browse files
author
linyuan.yang
committed
docker 自动安装 git
1 parent 87c7f69 commit b30d6af

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎packages/sbot/Dockerfile‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ ENV LOG_LEVEL=INFO
88

99
WORKDIR /app
1010

11+
# Memory 修改历史依赖 Git 命令行;显式安装,避免依赖 node 基础镜像的隐含工具集。
12+
RUN apt-get update \
13+
&& apt-get install -y --no-install-recommends git \
14+
&& rm -rf /var/lib/apt/lists/*
15+
1116
# 单独拷贝 package.json 安装外部依赖(此层与源码解耦,代码变更不影响缓存)
1217
COPY package.json ./
1318
RUN npm install --omit=dev && npm rebuild sqlite3 --build-from-source

0 commit comments

Comments
 (0)