From 023c070cfe20a74044ae28d822eefe7226abd731 Mon Sep 17 00:00:00 2001 From: Manjusaka Date: Sun, 11 Sep 2022 15:25:41 +0800 Subject: [PATCH] :rocket: Optimise the docker file to use the build cache --- .github/deployment/Dockerfile-affine | 4 ++-- .github/deployment/Dockerfile-affine-keck | 4 ++-- .github/deployment/Dockerfile-keck | 4 ++-- .github/deployment/Dockerfile-lisa | 4 ++-- .github/deployment/Dockerfile-venus | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/deployment/Dockerfile-affine b/.github/deployment/Dockerfile-affine index 9d54eb0cf420..6ea3d70fa787 100644 --- a/.github/deployment/Dockerfile-affine +++ b/.github/deployment/Dockerfile-affine @@ -1,9 +1,9 @@ FROM node:16-alpine as builder WORKDIR /app +RUN apk add git && npm i -g pnpm@7 COPY . . # RUN apk add g++ make python3 git libpng-dev -RUN apk add git -RUN npm i -g pnpm@7 && pnpm i --frozen-lockfile --store=node_modules/.pnpm-store --filter "!ligo-virgo-e2e" --filter "!keck" --filter "!venus" && pnpm run build:local --skip-nx-cache +RUN pnpm i --frozen-lockfile --store=node_modules/.pnpm-store --filter "!ligo-virgo-e2e" --filter "!keck" --filter "!venus" && pnpm run build:local --skip-nx-cache FROM node:16-alpine as relocate WORKDIR /app diff --git a/.github/deployment/Dockerfile-affine-keck b/.github/deployment/Dockerfile-affine-keck index ae76e1b01e29..296428f7705a 100644 --- a/.github/deployment/Dockerfile-affine-keck +++ b/.github/deployment/Dockerfile-affine-keck @@ -1,9 +1,9 @@ FROM node:16-alpine as builder WORKDIR /app +RUN apk add git && npm i -g pnpm@7 COPY . . # RUN apk add g++ make python3 git libpng-dev -RUN apk add git -RUN npm i -g pnpm@7 && pnpm i --frozen-lockfile --store=node_modules/.pnpm-store --filter "!ligo-virgo-e2e" --filter "!keck" --filter "!venus" && pnpm run build:local-keck --skip-nx-cache +RUN pnpm i --frozen-lockfile --store=node_modules/.pnpm-store --filter "!ligo-virgo-e2e" --filter "!keck" --filter "!venus" && pnpm run build:local-keck --skip-nx-cache FROM node:16-alpine as relocate WORKDIR /app diff --git a/.github/deployment/Dockerfile-keck b/.github/deployment/Dockerfile-keck index 7918e4942798..99a31c01c7cb 100644 --- a/.github/deployment/Dockerfile-keck +++ b/.github/deployment/Dockerfile-keck @@ -1,8 +1,8 @@ FROM node:16-alpine as builder WORKDIR /app +RUN apk add g++ make python3 git libpng-dev && npm i -g pnpm@7 COPY . . -RUN apk add g++ make python3 git libpng-dev -RUN npm i -g pnpm@7 && pnpm i --frozen-lockfile --store=node_modules/.pnpm-store && pnpm run build:keck +RUN pnpm i --frozen-lockfile --store=node_modules/.pnpm-store && pnpm run build:keck FROM node:16-alpine as node_modules WORKDIR /app diff --git a/.github/deployment/Dockerfile-lisa b/.github/deployment/Dockerfile-lisa index f469a7fce825..5721ad090bb2 100644 --- a/.github/deployment/Dockerfile-lisa +++ b/.github/deployment/Dockerfile-lisa @@ -1,9 +1,9 @@ FROM node:16-alpine as builder WORKDIR /app +RUN apk add git && npm i -g pnpm@7 COPY . . # RUN apk add g++ make python3 git libpng-dev -RUN apk add git -RUN npm i -g pnpm@7 && pnpm i --frozen-lockfile --store=node_modules/.pnpm-store --filter "!ligo-virgo-e2e" --filter "!keck" --filter "!venus" && pnpm run build +RUN pnpm i --frozen-lockfile --store=node_modules/.pnpm-store --filter "!ligo-virgo-e2e" --filter "!keck" --filter "!venus" && pnpm run build FROM node:16-alpine as relocate WORKDIR /app diff --git a/.github/deployment/Dockerfile-venus b/.github/deployment/Dockerfile-venus index 585ade8a2025..27bc80a4be2f 100644 --- a/.github/deployment/Dockerfile-venus +++ b/.github/deployment/Dockerfile-venus @@ -1,8 +1,8 @@ FROM node:16-alpine as builder WORKDIR /app +RUN apk add g++ make python3 git libpng-dev && npm i -g pnpm@7 COPY . . -RUN apk add g++ make python3 git libpng-dev -RUN npm i -g pnpm@7 && pnpm i --frozen-lockfile --store=node_modules/.pnpm-store && pnpm run build:venus +RUN pnpm i --frozen-lockfile --store=node_modules/.pnpm-store && pnpm run build:venus FROM node:16-alpine as relocate WORKDIR /app