FROM rust:1.70.0-slim AS builder FROM scratch COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --chown=1010:1010 --from=builder /srv /srv COPY --chown=1010:1010 ./x86_64-unknown-linux-musl/unftp_x86_64-unknown-linux-musl /unftp VOLUME /srv USER 1010 CMD ["/unftp", "-vv"]