From 74c9d3b5e378b97c261e7a744da3f72832041876 Mon Sep 17 00:00:00 2001 From: Natty Date: Sun, 5 Nov 2023 22:36:09 +0100 Subject: [PATCH] Install pnpm deps at the beginning --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5af7297..9866a20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,9 @@ 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 + +WORKDIR /magnetar/fe_calckey/frontend +RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i --frozen-lockfile ENV USER=magnetar ENV UID=10001 @@ -26,7 +28,6 @@ RUN cargo build --release --locked --workspace --bins WORKDIR /magnetar/fe_calckey/frontend -RUN pnpm i --frozen-lockfile RUN env NODE_ENV=production sh -c "pnpm run build && pnpm run gulp" FROM docker.io/debian:bullseye-slim