dumb-downloader/Containerfile

18 lines
505 B
Plaintext
Raw Normal View History

2023-06-20 08:06:54 +00:00
FROM registry.hub.docker.com/library/rust:1.70.0-slim-bookworm as builder
2023-01-17 21:35:35 +00:00
WORKDIR /src
2023-02-12 19:13:42 +00:00
RUN apt-get update &&\
apt-get install -y libssl-dev gcc musl pkg-config
2023-01-17 21:35:35 +00:00
COPY ./ .
RUN rustup default nightly && rustup update
RUN cargo build --release --jobs 2 -Z sparse-registry
2023-01-17 21:35:35 +00:00
2023-02-12 19:13:42 +00:00
FROM debian:stable
2023-02-12 08:51:14 +00:00
COPY --from=builder /src/target/release/dudo /bin/dudo
2023-06-20 08:06:54 +00:00
RUN apt-get update -y &&\
apt-get install openssl ca-certificates -y &&\
apt-get clean -y
2023-02-12 08:51:14 +00:00
RUN chmod +x /bin/dudo
2023-01-17 21:35:35 +00:00
WORKDIR /workdir
2023-02-12 08:51:14 +00:00
ENTRYPOINT ["/bin/dudo"]