Added Dockerfile

pull/28/head
Stefin 2 years ago
parent 6572bf7fca
commit 5726f3d98b

@ -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"]
Loading…
Cancel
Save