Skip to content

Commit 796a4bf

Browse files
committed
add git in docker
1 parent 0e5a43b commit 796a4bf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ WORKDIR /app
55
COPY b1-showinfo-docs/package*.json ./
66
COPY b1-showinfo-docs/data/requirements.txt ./
77

8+
# 安装 git。
9+
RUN apt-get update \
10+
&& apt-get install -y --no-install-recommends git \
11+
&& rm -rf /var/lib/apt/lists/*
12+
13+
# 安装第三方包依赖。
814
RUN npm ci \
915
&& npm cache clean --force \
1016
&& pip install --no-cache-dir -r requirements.txt \

0 commit comments

Comments
 (0)