From 9b2b64e37f0b70f59537a9a89424300fdf83326e Mon Sep 17 00:00:00 2001 From: Enrico Stemmer Date: Tue, 19 Mar 2024 12:34:09 +0100 Subject: [PATCH] fixed pnpm install --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2b17d76..ff83537 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,14 +7,18 @@ COPY migrations/ ./migrations RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o ./LocalFileSharing FROM node:alpine AS js-base +ENV PNPM_HOME="/pnpm" +ENV PATH="$PNPM_HOME:$PATH" +RUN corepack enable + WORKDIR /app -COPY package.json package-lock.json ./ -RUN npm install +COPY package.json pnpm-lock.yaml ./ +RUN pnpm install COPY astro.config.mjs tailwind.config.cjs tsconfig.json ./ COPY public/ ./public COPY src/ ./src COPY info.json ./info.json -RUN npm run build +RUN pnpm run build COPY --from=build-stage /app/LocalFileSharing ./LocalFileSharing