libreddit/Dockerfile

9 lines
243 B
Text
Raw Normal View History

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