easy-sms-rust/Dockerfile
2023-01-14 21:52:15 +08:00

15 lines
335 B
Docker

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