redsunlib/Dockerfile

9 lines
243 B
Docker
Raw Normal View History

2020-11-18 18:45:15 +13:00
FROM rust:alpine as builder
2020-10-26 09:48:44 +13:00
WORKDIR /usr/src/libreddit
COPY . .
2020-11-18 18:45:15 +13:00
RUN apk add --no-cache g++ openssl-dev
2020-10-26 09:48:44 +13:00
RUN cargo install --path .
2020-11-18 18:45:15 +13:00
FROM alpine:latest
2020-11-18 14:31:12 +13:00
COPY --from=builder /usr/local/cargo/bin/libreddit /usr/local/bin/libreddit
2020-10-26 09:48:44 +13:00
CMD ["libreddit"]