easy-sms-rust/Dockerfile

15 lines
335 B
Docker
Raw Normal View History

2023-01-14 13:52:15 +00:00
FROM rust:1.66 as builder
WORKDIR /build
COPY Cargo.toml Cargo.toml
COPY Cargo.lock Cargo.lock
COPY src src
RUN cargo build --release
RUN strip target/release/easy-sms
FROM debian:buster
COPY --from=builder /build/target/release/easy-sms /usr/bin
RUN apt update && apt install -y libssl1.1
ENTRYPOINT ["/usr/bin/easy-sms"]
EXPOSE 80