Jump through pnpm hoops
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
tobias 2024-06-05 22:41:46 +02:00
parent 8279098f80
commit 12651d02b3

View File

@ -1,7 +1,14 @@
FROM node:lts as base FROM node:lts as base
FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
WORKDIR /base WORKDIR /base
COPY package.json pnpm-lock.yaml ./ COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
COPY . . COPY . .
FROM base AS dev FROM base AS dev