Do less pnpm weirdness
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
tobias 2024-06-05 22:50:15 +02:00
parent 12651d02b3
commit d92cf801d7

View File

@ -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