Fixed the Dockerfile
ci/woodpecker/push/ociImagePush Pipeline failed Details

This commit is contained in:
Natty 2023-11-05 20:48:13 +01:00
parent fdfd3163b1
commit 77966076ec
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
1 changed files with 11 additions and 14 deletions

View File

@ -1,20 +1,9 @@
FROM docker.io/alpine:3.18 as build_fe
RUN apk add --no-cache --no-progress git alpine-sdk nodejs-current npm
WORKDIR /fe_calckey
COPY ./fe_calckey/frontend ./frontend
WORKDIR /fe_calckey/frontend
RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i --frozen-lockfile
RUN env NODE_ENV=production sh -c "pnpm run build && pnpm run gulp"
FROM docker.io/rust:1.71-bullseye as build
RUN update-ca-certificates
RUN apt install -y git nodejs npm
ENV USER=magnetar
ENV UID=10001
@ -32,6 +21,14 @@ COPY ./ .
RUN cargo build --release --locked --workspace --bins
WORKDIR /fe_calckey
COPY ./fe_calckey/frontend ./frontend
WORKDIR /fe_calckey/frontend
RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i --frozen-lockfile
RUN env NODE_ENV=production sh -c "pnpm run build && pnpm run gulp"
FROM docker.io/debian:bullseye-slim
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt