~nickbp/twitch-rss

twitch-rss/Dockerfile -rw-r--r-- 416 bytes
50e2dbbfNick Parker Release 0.1.2: Bump dependencies 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
# Builds an image containing the binary and little else.

# Builder image
FROM docker.io/library/rust:slim
COPY . /twitch-rss
RUN cd /twitch-rss \
  && cargo --version \
  && cargo build --all-targets --release

# Release image: copy executable from builder
FROM docker.io/library/debian:bullseye-slim
COPY --from=0 /twitch-rss/target/release/twitch-rss /twitch-rss
RUN chmod +x /twitch-rss && /twitch-rss --version