🚀 Optimise the docker file to use the build cache

This commit is contained in:
Manjusaka
2022-09-11 15:25:41 +08:00
parent fde0016abc
commit 023c070cfe
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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