From 8b83350651b82a95cefa594a49c6e151a4c7d742 Mon Sep 17 00:00:00 2001 From: Natty Date: Sun, 5 Nov 2023 22:21:15 +0100 Subject: [PATCH] Enable Corepack and pnpm at the beginning --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 205a692..5af7297 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ RUN update-ca-certificates RUN apt update RUN apt install -y git nodejs npm RUN npm install -g corepack +RUN corepack enable && corepack prepare pnpm@latest --activate ENV USER=magnetar ENV UID=10001 @@ -25,8 +26,7 @@ RUN cargo build --release --locked --workspace --bins WORKDIR /magnetar/fe_calckey/frontend -RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i --frozen-lockfile - +RUN pnpm i --frozen-lockfile RUN env NODE_ENV=production sh -c "pnpm run build && pnpm run gulp" FROM docker.io/debian:bullseye-slim