dufs/Dockerfile

15 lines
368 B
Text
Raw Normal View History

2024-04-08 02:01:59 +03:00
FROM --platform=linux/amd64 messense/rust-musl-cross:x86_64-musl AS amd64
COPY . .
RUN cargo install --path . --root /
FROM --platform=linux/amd64 messense/rust-musl-cross:aarch64-musl AS arm64
COPY . .
RUN cargo install --path . --root /
FROM ${TARGETARCH} AS builder
FROM scratch
2022-06-29 05:51:59 +03:00
COPY --from=builder /bin/dufs /bin/dufs
STOPSIGNAL SIGINT
2022-06-29 05:51:59 +03:00
ENTRYPOINT ["/bin/dufs"]