summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-07-01 22:41:12 +0200
committerJulian Andres Klode <jak@debian.org>2017-07-02 00:00:58 +0200
commitd34f0e25df621b902d9336287d372530cc45cef9 (patch)
tree1a57fee02653f6c5ceedbed7c130285b8dbb68dc /Dockerfile
parentc72cc1c1ce2251a7809233d6791141bc777cb899 (diff)
downloadapt-d34f0e25df621b902d9336287d372530cc45cef9.tar.gz
travis/docker: Various improvements
- Use a tmpfs for /tmp - not really a benefit here, except for travis as it's writing less now. - Use the fastly CDN - about twice as fast as ftp.de, and seems more stable than cloudfront - Run apt-get clean to keep container smaller - should not be needed really, but let's just do it. Gbp-Dch: ignore
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index be7c36e49..b7af5f629 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,10 +1,11 @@
FROM debian:testing
COPY . /tmp
WORKDIR /tmp
-RUN sed -i s#deb.debian.org#ftp.de.debian.org# /etc/apt/sources.list \
+RUN sed -i s#://deb.debian.org#://cdn-fastly.deb.debian.org# /etc/apt/sources.list \
&& apt-get update \
&& adduser --home /home/travis travis --quiet --disabled-login --gecos "" --uid 1000 \
&& env DEBIAN_FRONTEND=noninteractive apt-get install build-essential ccache ninja-build expect curl git -q -y \
&& env DEBIAN_FRONTEND=noninteractive ./prepare-release travis-ci \
&& dpkg-reconfigure ccache \
- && rm -r /tmp/*
+ && rm -r /tmp/* \
+ && apt-get clean