~nickbp/force-rss

ref: 268359a6101f705fbf51e365156ab8750feca071 force-rss/Dockerfile -rw-r--r-- 544 bytes
268359a6Nick Parker curl should be in runtime, not builder 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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
RUN apt-get update \
  && apt-get install -y curl \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists /var/cache/apt/archives
COPY --from=0 /twitch-rss/target/release/twitch-rss /twitch-rss
RUN chmod +x /twitch-rss && /twitch-rss --version