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
25
Dockerfile
25
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
|
FROM docker.io/rust:1.71-bullseye as build
|
||||||
|
|
||||||
RUN update-ca-certificates
|
RUN update-ca-certificates
|
||||||
|
|
||||||
|
RUN apt install -y git nodejs npm
|
||||||
|
|
||||||
ENV USER=magnetar
|
ENV USER=magnetar
|
||||||
ENV UID=10001
|
ENV UID=10001
|
||||||
|
|
||||||
|
@ -32,6 +21,14 @@ COPY ./ .
|
||||||
|
|
||||||
RUN cargo build --release --locked --workspace --bins
|
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
|
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
|
||||||
|
@ -59,4 +56,4 @@ USER magnetar:magnetar
|
||||||
EXPOSE 4938/tcp
|
EXPOSE 4938/tcp
|
||||||
EXPOSE 4939/tcp
|
EXPOSE 4939/tcp
|
||||||
|
|
||||||
ENTRYPOINT ["/magnetar/magnetar"]
|
ENTRYPOINT ["/magnetar/magnetar"]
|
||||||
|
|
Loading…
Reference in New Issue