a008e20cc7
I think I've just forgotten to add `-y` to apt-get. So the image could not be built because it was waiting for a user's input Issue: https://git.badhouseplants.net/allanger/dumb-downloader/issues/9
18 lines
470 B
Docker
18 lines
470 B
Docker
FROM rust:1.70.0-slim-bookworm as builder
|
|
WORKDIR /src
|
|
RUN apt-get update &&\
|
|
apt-get install -y libssl-dev gcc musl pkg-config
|
|
COPY ./ .
|
|
RUN rustup default nightly && rustup update
|
|
RUN cargo build --release --jobs 2 -Z sparse-registry
|
|
|
|
|
|
FROM debian:stable
|
|
COPY --from=builder /src/target/release/dudo /bin/dudo
|
|
RUN apt-get update &&\
|
|
apt-get install -y openssl ca-certificates &&\
|
|
apt-get clean -y
|
|
RUN chmod +x /bin/dudo
|
|
WORKDIR /workdir
|
|
ENTRYPOINT ["/bin/dudo"]
|