Some checks failed
ci/woodpecker/push/build-container Pipeline failed
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
15 lines
356 B
Docker
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
|