Skip to content

Commit 7430c8d

Browse files
committed
do not use mirror url
1 parent 4b736e9 commit 7430c8d

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Docker Image CI
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [ "master" ]
67
pull_request:
@@ -19,4 +20,4 @@ jobs:
1920
submodules: recursive
2021

2122
- name: Build The Docker Image
22-
run: docker build . --file Dockerfile --tag b1-showinfo-docs-docker-runtime:$(date +%s)
23+
run: docker build . --file Dockerfile --tag b1-showinfo-docs-docker-runtime

Dockerfile

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

8-
RUN npm config set registry https://registry.npmmirror.com \
9-
&& npm ci \
8+
RUN npm ci \
109
&& npm cache clean --force \
11-
&& pip install --no-cache-dir \
12-
-i https://pypi.tuna.tsinghua.edu.cn/simple \
13-
-r requirements.txt \
10+
&& pip install --no-cache-dir -r requirements.txt \
1411
&& rm -rf /root/.cache/pip
1512

1613
COPY . .

0 commit comments

Comments
 (0)