Files
rustfs-manager-operator/operator/Containerfile
Nikolai Rodionov 334cfddcf0
Some checks failed
ci/woodpecker/push/build-container Pipeline failed
Try a nightly toolchain in the build
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
2026-03-15 14:28:34 +01:00

15 lines
356 B
Docker

FROM docker.io/rustfs/rc:v0.1.7 AS rc
WORKDIR /output
RUN cp $(which rc) .
FROM rust AS builder
WORKDIR /src
COPY . .
RUN rustup toolchain install nightly
RUN cargo +nightly build --release -Z sparse-registry
FROM alpine
COPY --from=rc /output/rc /usr/bin/rc
COPY --from=builder /src/target/release/controller /usr/bin/controller
RUN /usr/bin/controller