This commit is contained in:
parent
12651d02b3
commit
d92cf801d7
@ -1,14 +1,12 @@
|
|||||||
FROM node:lts as base
|
FROM node:lts as base
|
||||||
|
|
||||||
|
|
||||||
FROM node:20-slim AS base
|
|
||||||
ENV PNPM_HOME="/pnpm"
|
ENV PNPM_HOME="/pnpm"
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
|
|
||||||
WORKDIR /base
|
WORKDIR /base
|
||||||
COPY package.json pnpm-lock.yaml ./
|
COPY package.json pnpm-lock.yaml ./
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
|
RUN pnpm install --prod --frozen-lockfile
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
FROM base AS dev
|
FROM base AS dev
|
||||||
|
Loading…
Reference in New Issue
Block a user