Skip to content

Commit d4479aa

Browse files
committed
add Dockerfile and dockerignore
1 parent 8ce42ca commit d4479aa

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.git/
2+
b1-showinfo-docs/*
3+
!b1-showinfo-docs/package*.json
4+
!b1-showinfo-docs/data/requirements.txt
5+
.gitmodules

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM nikolaik/python-nodejs:python3.8-nodejs22-slim
2+
3+
WORKDIR /app
4+
5+
COPY b1-showinfo-docs/package*.json ./
6+
COPY b1-showinfo-docs/data/requirements.txt ./
7+
8+
RUN npm config set registry https://registry.npmmirror.com \
9+
&& npm ci \
10+
&& npm cache clean --force \
11+
&& pip install --no-cache-dir \
12+
-i https://pypi.tuna.tsinghua.edu.cn/simple \
13+
-r requirements.txt \
14+
&& rm -rf /root/.cache/pip
15+
16+
COPY . .

0 commit comments

Comments
 (0)