Commit 6bd63008 authored by Georgi Petkov's avatar Georgi Petkov
Browse files

chore: implementing yarn install --network-timeout 300000 param

parent 26389880
Pipeline #30953 passed with stages
in 31 seconds
......@@ -12,5 +12,5 @@ build:
- build
script:
- yarn build
- yarn install --frozen-lockfile --production --ignore-scripts
- yarn install --frozen-lockfile --production --ignore-scripts --network-timeout 300000
--ignore-engines
......@@ -12,5 +12,5 @@ build:
- build
script:
- yarn build
- yarn install --production --frozen-lockfile --ignore-scripts
- yarn install --production --frozen-lockfile --ignore-scripts --network-timeout 300000
--ignore-engines
......@@ -13,4 +13,4 @@ build:
script:
- node -v
- yarn build
- yarn install --frozen-lockfile --production --ignore-scripts --ignore-engines
- yarn install --frozen-lockfile --production --ignore-scripts --ignore-engines --network-timeout 300000
......@@ -6,4 +6,4 @@ setup:
- .skip-artifacts
interruptible: true
script:
- yarn install --frozen-lockfile --ignore-engines
- yarn install --frozen-lockfile --ignore-engines --network-timeout 300000
......@@ -7,4 +7,4 @@ setup:
interruptible: true
script:
- node -v
- yarn install --frozen-lockfile --ignore-engines
- yarn install --frozen-lockfile --ignore-engines --network-timeout 300000
......@@ -11,7 +11,7 @@ ARG COMMIT_SHA
# dependencies when the package.json or yarn.lock change and can make
# full use of docker's layer caching
COPY package.json yarn.lock .yarnclean /app/
RUN yarn install --frozen-lockfile
RUN yarn install --frozen-lockfile --ignore-scripts --network-timeout 300000
# Now copy the rest of the app into the container
COPY . /app
......
......@@ -19,7 +19,7 @@ RUN mv /usr/bin/sops-${SOPS_LATEST_VERSION}.linux /usr/bin/sops && chmod +x /usr
# dependencies when the package.json or yarn.lock change and can make
# full use of docker's layer caching
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
RUN yarn install --frozen-lockfile --network-timeout 300000
# 2. Copy rest of the app after dependencies have been installed for a higher
# chance of not having to re-install the dependencies on every 'docker build'
......@@ -27,7 +27,7 @@ COPY . .
RUN yarn build
# Remove 'devDependencies' from final build to reduce app size
RUN yarn install --frozen-lockfile --production --ignore-scripts
RUN yarn install --frozen-lockfile --production --ignore-scripts --network-timeout 300000
#################
# RUNTIME IMAGE #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment