# Builds an image containing the binary and little else.
FROM rust:slim
COPY . /twitch-rss
RUN cd /twitch-rss && cargo build --all-targets --release

FROM debian:buster-slim
COPY --from=0 /twitch-rss/target/release/twitch-rss /twitch-rss
RUN chmod +x /twitch-rss
