Build things before user is modified
ci/woodpecker/push/ociImagePush Pipeline failed Details

This commit is contained in:
Natty 2023-11-05 22:41:30 +01:00
parent 74c9d3b5e3
commit 0073eaa169
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
1 changed files with 12 additions and 11 deletions

View File

@ -6,8 +6,19 @@ 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
WORKDIR /magnetar
COPY ./ .
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 cargo build --release --locked --workspace --bins
WORKDIR /magnetar/fe_calckey/frontend
RUN env NODE_ENV=production sh -c "pnpm run build && pnpm run gulp"
ENV USER=magnetar ENV USER=magnetar
ENV UID=10001 ENV UID=10001
@ -20,16 +31,6 @@ RUN adduser \
--uid "${UID}" \ --uid "${UID}" \
"${USER}" "${USER}"
WORKDIR /magnetar
COPY ./ .
RUN cargo build --release --locked --workspace --bins
WORKDIR /magnetar/fe_calckey/frontend
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
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt