Fixed the Dockerfile
ci/woodpecker/push/ociImagePush Pipeline failed
Details
ci/woodpecker/push/ociImagePush Pipeline failed
Details
This commit is contained in:
parent
fdfd3163b1
commit
77966076ec
23
Dockerfile
23
Dockerfile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue