Enable Corepack and pnpm at the beginning
ci/woodpecker/push/ociImagePush Pipeline failed
Details
ci/woodpecker/push/ociImagePush Pipeline failed
Details
This commit is contained in:
parent
739ebdd511
commit
8b83350651
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue