All checks were successful
ci/woodpecker/push/build-container Pipeline was successful
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
17 lines
411 B
Docker
17 lines
411 B
Docker
FROM docker.io/rustfs/rc:v0.1.7 AS rc
|
|
WORKDIR /output
|
|
RUN cp $(which rc) .
|
|
|
|
FROM rust:alpine3.23 AS builder
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN cargo build --release
|
|
WORKDIR /output
|
|
RUN cp /src/target/release/rustfs-manager-operator .
|
|
|
|
FROM gcr.io/distroless/static
|
|
COPY --from=builder /output/rustfs-manager-operator /usr/bin/controller
|
|
COPY --from=rc /output/rc /usr/bin/rc
|
|
ENTRYPOINT ["/usr/bin/controller"]
|
|
USER 1001
|