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