redsunlib/Dockerfile

9 lines
308 B
Docker
Raw Normal View History

2020-11-18 14:31:12 +13:00
FROM rust:latest as builder
2020-10-26 09:48:44 +13:00
WORKDIR /usr/src/libreddit
COPY . .
RUN cargo install --path .
2020-11-18 14:31:12 +13:00
FROM debian:buster-slim
RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/libreddit /usr/local/bin/libreddit
2020-10-26 09:48:44 +13:00
CMD ["libreddit"]