mirror of
https://github.com/spikecodes/libreddit
synced 2024-12-26 18:45:39 +01:00
9 lines
243 B
Docker
9 lines
243 B
Docker
FROM rust:alpine as builder
|
|
WORKDIR /usr/src/libreddit
|
|
COPY . .
|
|
RUN apk add --no-cache g++ openssl-dev
|
|
RUN cargo install --path .
|
|
|
|
FROM alpine:latest
|
|
COPY --from=builder /usr/local/cargo/bin/libreddit /usr/local/bin/libreddit
|
|
CMD ["libreddit"] |