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