2023-02-12 19:13:42 +00:00
|
|
|
FROM rust:1.67.1-slim-buster 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 cargo build --release
|
|
|
|
|
|
|
|
|
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-02-12 19:13:42 +00:00
|
|
|
RUN apt-get update &&\
|
|
|
|
apt-get install openssl ca-certificates &&\
|
|
|
|
apt-get clean
|
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"]
|