pidgin/mailing-list-archives

Don't include the tar archive in the image.

16 months ago, Gary Kramlich
950fc757523d
Parents 860f4da3c896
Children 8f8920c14b41
Don't include the tar archive in the image.

This also deletes the tar archive from the build image which will free up some
disk on machines building these images as well.
--- a/Dockerfile.imfreedom Wed Dec 21 01:34:49 2022 -0600
+++ b/Dockerfile.imfreedom Wed Dec 21 01:42:57 2022 -0600
@@ -1,10 +1,11 @@
FROM docker.io/alpine:edge AS build
-RUN mkdir /archive && \
+RUN apk add --no-cache bzip2 ca-certificates pv tar wget && \
+ wget --output-document=/tmp/archive.tar.bz2 https://data.imfreedom.org/public/list-archives/list-archives-imf.tar.bz2 && \
+ mkdir /archive && \
cd /archive && \
- apk add --no-cache bzip2 ca-certificates pv tar wget && \
- wget --output-document=archive.tar.bz2 https://data.imfreedom.org/public/list-archives/list-archives-imf.tar.bz2 && \
- pv --numeric archive.tar.bz2 | tar jxf -
+ pv --numeric /tmp/archive.tar.bz2 | tar jxf - && \
+ rm -f /tmp/archive.tar.bz2
FROM docker.io/nginx:alpine
--- a/Dockerfile.pidgin Wed Dec 21 01:34:49 2022 -0600
+++ b/Dockerfile.pidgin Wed Dec 21 01:42:57 2022 -0600
@@ -1,10 +1,11 @@
FROM docker.io/alpine:edge AS build
-RUN mkdir /archive && \
+RUN apk add --no-cache bzip2 ca-certificates pv tar wget && \
+ wget --output-document=/tmp/archive.tar.bz2 https://data.imfreedom.org/public/list-archives/list-archives-pidgin.tar.bz2 && \
+ mkdir /archive && \
cd /archive && \
- apk add --no-cache bzip2 ca-certificates pv tar wget && \
- wget --output-document=archive.tar.bz2 https://data.imfreedom.org/public/list-archives/list-archives-pidgin.tar.bz2 && \
- pv --numeric archive.tar.bz2 | tar jxf -
+ pv --numeric /tmp/archive.tar.bz2 | tar jxf - && \
+ rm -f /tmp/archive.tar.bz2
FROM docker.io/nginx:alpine