Skip to content

Commit

Permalink
chore: update workflow , increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Mar 13, 2023
1 parent cad2fc6 commit f809852
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ USER root
RUN apk add --update python3 make g++ && rm -rf /var/cache/apk/*
COPY ./packages/admin/ ./
RUN npm install --global pnpm
RUN pnpm config set network-timeout 600000
RUN pnpm config set network-timeout 600000 -g
RUN pnpm config set registry https://registry.npmjs.org -g
RUN pnpm config set fetch-retries 20 -g
RUN pnpm config set fetch-timeout 600000 -g
RUN pnpm i
# RUN sed -i 's/\/assets/\/admin\/assets/g' dist/admin/index.html
RUN pnpm build
Expand All @@ -18,7 +21,10 @@ ENV NODE_OPTIONS=--max_old_space_size=4096
WORKDIR /app
COPY ./packages/server/ .
RUN npm install --global pnpm
RUN pnpm config set network-timeout 600000
RUN pnpm config set network-timeout 600000 -g
RUN pnpm config set registry https://registry.npmmirror.com -g
RUN pnpm config set fetch-retries 20 -g
RUN pnpm config set fetch-timeout 600000 -g
RUN pnpm i
RUN pnpm build

Expand All @@ -29,6 +35,9 @@ WORKDIR /app
COPY ./packages/website/package.json ./packages/website/pnpm-lock.yaml* ./
RUN npm install --global pnpm
RUN pnpm config set network-timeout 600000 -g
RUN pnpm config set registry https://registry.npmmirror.com -g
RUN pnpm config set fetch-retries 20 -g
RUN pnpm config set fetch-timeout 600000 -g
# RUN yarn config set registry https://registry.npmmirror.com -g
RUN pnpm i

Expand All @@ -43,8 +52,10 @@ ENV VAN_BLOG_SERVER_URL ${VAN_BLOG_BUILD_SERVER}
ARG VAN_BLOG_VERSIONS
ENV VAN_BLOG_VERSION ${VAN_BLOG_VERSIONS}
RUN npm install --global pnpm
RUN pnpm config set network-timeout 60000 -g
RUN pnpm config set network-timeout 600000 -g
RUN pnpm config set registry https://registry.npmmirror.com -g
RUN pnpm config set fetch-retries 20 -g
RUN pnpm config set fetch-timeout 600000 -g
RUN pnpm build


Expand All @@ -56,7 +67,10 @@ RUN apk add --no-cache --update tzdata caddy nss-tools \
&& echo "Asia/Shanghai" > /etc/timezone \
&& apk del tzdata
RUN npm install --global pnpm
RUN pnpm config set network-timeout 600000
RUN pnpm config set network-timeout 600000 -g
RUN pnpm config set registry https://registry.npmmirror.com -g
RUN pnpm config set fetch-retries 20 -g
RUN pnpm config set fetch-timeout 600000 -g
# 安装 waline
WORKDIR /app/waline
COPY ./packages/waline/ ./
Expand Down

0 comments on commit f809852

Please sign in to comment.