This commit is contained in:
@@ -3,6 +3,7 @@ node_modules
|
|||||||
dist
|
dist
|
||||||
|
|
||||||
.git
|
.git
|
||||||
|
.git/**
|
||||||
.github
|
.github
|
||||||
.gitignore
|
.gitignore
|
||||||
.editorconfig
|
.editorconfig
|
||||||
|
|||||||
+6
-14
@@ -6,17 +6,6 @@ RUN apk add --no-cache tzdata \
|
|||||||
|
|
||||||
ENV npm_config_nodedir=/usr/local
|
ENV npm_config_nodedir=/usr/local
|
||||||
|
|
||||||
FROM base AS deps
|
|
||||||
|
|
||||||
WORKDIR /deps
|
|
||||||
|
|
||||||
RUN apk add --no-cache python3 make g++
|
|
||||||
|
|
||||||
COPY package.json package-lock.json ./
|
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.npm \
|
|
||||||
npm ci
|
|
||||||
|
|
||||||
FROM base AS prod-deps
|
FROM base AS prod-deps
|
||||||
|
|
||||||
WORKDIR /deps
|
WORKDIR /deps
|
||||||
@@ -32,11 +21,14 @@ FROM base AS builder
|
|||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
RUN apk add --no-cache python3 make g++
|
RUN apk add --no-cache python3 make g++ vips-dev
|
||||||
|
|
||||||
COPY . .
|
COPY package.json package-lock.json ./
|
||||||
|
|
||||||
COPY --from=deps /deps/node_modules ./node_modules
|
RUN --mount=type=cache,target=/root/.npm \
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
COPY assets components layouts middleware mixins modules pages plugins server static store nuxt.config.js ./
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user