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"]