Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit c83b0f2

Browse files
committed
build(docker): add jq deps for aliyun build
1 parent 2b1834f commit c83b0f2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

deploy/dev/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ ADD web.tar.gz /root/web
66
RUN npm install -g pm2 --registry=https://registry.npm.taobao.org
77
RUN cd /root/web/ && npm install --registry=https://registry.npm.taobao.org
88

9+
RUN mkdir -p ~/bin && curl -sSL -o ~/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && chmod +x ~/bin/jq
10+
RUN export PATH=$PATH:~/bin
11+
RUN jq --version
12+
913
RUN cd /root/web/ && make build.dev
1014

1115
ADD loader.sh /usr/local/bin/loader.sh

deploy/production/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ RUN npm install -g pm2 --registry=https://registry.npm.taobao.org
77
RUN cd /root/web/ && npm install --registry=https://registry.npm.taobao.org
88
RUN cd /root/web/ && npm i terser@3.14
99

10+
RUN mkdir -p ~/bin && curl -sSL -o ~/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && chmod +x ~/bin/jq
11+
RUN export PATH=$PATH:~/bin
12+
RUN jq --version
13+
1014
RUN cd /root/web/ && make build.prod
1115

1216
ADD loader.sh /usr/local/bin/loader.sh

0 commit comments

Comments
 (0)