diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0454a28 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +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 +