~nickbp/twitch-rss

268359a6101f705fbf51e365156ab8750feca071 — Nick Parker 3 months ago 458fafc main
curl should be in runtime, not builder
1 files changed, 4 insertions(+), 4 deletions(-)

M Dockerfile
M Dockerfile => Dockerfile +4 -4
@@ 2,10 2,6 @@

# Builder image
FROM docker.io/library/rust:slim
RUN apt-get update \
  && apt-get install -y curl \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists /var/cache/apt/archives
COPY . /twitch-rss
RUN cd /twitch-rss \
  && cargo --version \


@@ 13,5 9,9 @@ RUN cd /twitch-rss \

# 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