mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-09 01:09:49 +03:00
🚀 Optimise the docker file to use the build cache
This commit is contained in:
parent
fde0016abc
commit
023c070cfe
4
.github/deployment/Dockerfile-affine
vendored
4
.github/deployment/Dockerfile-affine
vendored
@ -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
|
||||
|
4
.github/deployment/Dockerfile-affine-keck
vendored
4
.github/deployment/Dockerfile-affine-keck
vendored
@ -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
|
||||
|
4
.github/deployment/Dockerfile-keck
vendored
4
.github/deployment/Dockerfile-keck
vendored
@ -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
|
||||
|
4
.github/deployment/Dockerfile-lisa
vendored
4
.github/deployment/Dockerfile-lisa
vendored
@ -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
|
||||
|
4
.github/deployment/Dockerfile-venus
vendored
4
.github/deployment/Dockerfile-venus
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user