Build things before user is modified
ci/woodpecker/push/ociImagePush Pipeline failed
Details
ci/woodpecker/push/ociImagePush Pipeline failed
Details
This commit is contained in:
parent
74c9d3b5e3
commit
0073eaa169
23
Dockerfile
23
Dockerfile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue