From 5726f3d98b3163d9125240db7a2b51c721f80487 Mon Sep 17 00:00:00 2001 From: Stefin Date: Wed, 29 Dec 2021 21:38:17 +0530 Subject: [PATCH] Added Dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..20bcbf5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM rust:alpine AS builder + +WORKDIR /phetch + +COPY . . + +RUN apk add openssl-dev + +RUN cargo install --path . + +FROM alpine + +COPY --from=builder /usr/local/cargo/bin/phetch /usr/local/bin/ + +RUN chmod +x /usr/local/bin/phetch + +ENTRYPOINT ["/usr/local/bin/phetch"]