Skip to content

Commit

Permalink
Download tarballs to storage then extract it
Browse files Browse the repository at this point in the history
For some reason, it was a bit flaky when piping the downloaded stream into tar.
Falling back to the traditional method here.
  • Loading branch information
SteveLTN committed Feb 3, 2021
1 parent e6c7d8c commit ae3f8aa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ ENV S6_OVERLAY_VERSION v2.2.0.1
ENV DOCKER_GEN_VERSION 0.7.4
ENV ACME_TINY_VERSION 4.1.0

RUN sh -c "wget -q https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-`archname s6-overlay`.tar.gz -O -" | \
tar xzC /
RUN sh -c "wget -q https://github.com/jwilder/docker-gen/releases/download/$DOCKER_GEN_VERSION/docker-gen-linux-`archname docker-gen`-$DOCKER_GEN_VERSION.tar.gz -O -" | \
tar xzC /bin
RUN sh -c "wget -q https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-`archname s6-overlay`.tar.gz -O /tmp/s6-overlay.tar.gz" && \
tar xzf /tmp/s6-overlay.tar.gz -C / && \
rm -rf /tmp/s6-overlay.tar.gz
RUN sh -c "wget -q https://github.com/jwilder/docker-gen/releases/download/$DOCKER_GEN_VERSION/docker-gen-linux-`archname docker-gen`-$DOCKER_GEN_VERSION.tar.gz -O /tmp/docker-gen.tar.gz" && \
tar xzf /tmp/docker-gen.tar.gz -C /bin && \
rm -rf /tmp/docker-gen.tar.gz

RUN wget -q https://raw.githubusercontent.com/diafygi/acme-tiny/$ACME_TINY_VERSION/acme_tiny.py -O /bin/acme_tiny

RUN rm /etc/nginx/conf.d/default.conf /etc/crontab
Expand Down

0 comments on commit ae3f8aa

Please sign in to comment.