Enable Corepack and pnpm at the beginning
ci/woodpecker/push/ociImagePush Pipeline failed Details

This commit is contained in:
Natty 2023-11-05 22:21:15 +01:00
parent 739ebdd511
commit 8b83350651
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
1 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,7 @@ RUN update-ca-certificates
RUN apt update RUN apt update
RUN apt install -y git nodejs npm RUN apt install -y git nodejs npm
RUN npm install -g corepack RUN npm install -g corepack
RUN corepack enable && corepack prepare pnpm@latest --activate
ENV USER=magnetar ENV USER=magnetar
ENV UID=10001 ENV UID=10001
@ -25,8 +26,7 @@ RUN cargo build --release --locked --workspace --bins
WORKDIR /magnetar/fe_calckey/frontend 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" RUN env NODE_ENV=production sh -c "pnpm run build && pnpm run gulp"
FROM docker.io/debian:bullseye-slim FROM docker.io/debian:bullseye-slim