Normalize source files within the image.

This commit is contained in:
Will Rouesnel 2017-12-22 10:55:37 +11:00
parent 80b213d21f
commit 3d88e1460f
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,14 @@
FROM ubuntu:zesty FROM ubuntu:zesty
RUN apt-get update && apt-get build-dep -y squid && apt-get install -y wget tar xz-utils libssl-dev # Normalize apt sources
RUN cat /etc/apt/sources.list | grep -v '^#' | sed /^$/d | sort | uniq > sources.tmp.1 && \
cat /etc/apt/sources.list | sed s/deb\ /deb-src\ /g | grep -v '^#' | sed /^$/d | sort | uniq > sources.tmp.2 && \
cat sources.tmp.1 sources.tmp.2 > /etc/apt/sources.list && \
rm -f sources.tmp.1 sources.tmp.2
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get build-dep -y squid && \
DEBIAN_FRONTEND=noninteractive apt-get install -y wget tar xz-utils libssl-dev
ARG SQUID_VERSION=4.0.21 ARG SQUID_VERSION=4.0.21