From fed52a62403a14d94be91860731bcf2a38308bef Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 24 May 2024 06:57:36 +0200 Subject: [PATCH] Update dockerfile for pnpm --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe1d6664..5c2bcf21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,19 @@ FROM node:22.2.0-alpine as ui-builder -RUN mkdir /app +RUN mkdir /app \ + && corepack enable WORKDIR /app -COPY package.json yarn.lock .yarnrc.yml /app/ -COPY .yarn/releases/ /app/.yarn/releases/ +COPY package.json pnpm-lock.yaml /app/ -RUN apk add --update --no-cache g++ make\ - && yarn install\ +RUN apk add --update --no-cache g++ make git \ + && pnpm install --frozen-lockfile \ && apk del g++ make COPY . /app -RUN yarn build +RUN pnpm run build FROM nginx:1.26.0-alpine COPY --from=ui-builder /app/dist /etc/nginx/html