Browse Source

Update yarn install line

To solve network connection problem
pull/2004/head
Hironsan 2 years ago
parent
commit
b97050b8d9
2 changed files with 2 additions and 2 deletions
  1. 2
      docker/Dockerfile
  2. 2
      docker/Dockerfile.nginx

2
docker/Dockerfile

@ -9,7 +9,7 @@ ENV PUBLIC_PATH="/static/_nuxt/"
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends git python3 make g++ ca-certificates \ && apt-get install -y --no-install-recommends git python3 make g++ ca-certificates \
&& git config --global url."https://github.com/".insteadOf git://github.com/ \ && git config --global url."https://github.com/".insteadOf git://github.com/ \
&& yarn install \
&& yarn install --network-timeout 1000000 \
&& yarn build \ && yarn build \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

2
docker/Dockerfile.nginx

@ -7,7 +7,7 @@ WORKDIR /app
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends git python3 make g++ ca-certificates \ && apt-get install -y --no-install-recommends git python3 make g++ ca-certificates \
&& git config --global url."https://github.com/".insteadOf git://github.com/ \ && git config --global url."https://github.com/".insteadOf git://github.com/ \
&& yarn install \
&& yarn install --network-timeout 1000000 \
&& yarn build \ && yarn build \
&& apt-get clean && apt-get clean

Loading…
Cancel
Save