summary refs log tree commit diff
path: root/docker
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-05-22 10:17:47 +0100
committerGitHub <noreply@github.com>2020-05-22 10:17:47 +0100
commit8c75da916c7be82e6e6ad6a83f48aa8416d806f8 (patch)
treeac0d2cfff17d3a0e477f49de18e7309fd1ea591a /docker
parentFix stacktrace mangling in `patch_inline_callbacks` (#7554) (diff)
downloadsynapse-8c75da916c7be82e6e6ad6a83f48aa8416d806f8.tar.xz
Refresh apt cache when building dh_virtualenv docker image (#7555)
When we tried to build debs for 1.13.0, the build failed because docker used a
base docker image which had a stale apt cache.

Fixes: #7540
Diffstat (limited to '')
-rw-r--r--docker/Dockerfile-dhvirtualenv6
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/Dockerfile-dhvirtualenv b/docker/Dockerfile-dhvirtualenv
index 579724685c..bf6af74104 100644
--- a/docker/Dockerfile-dhvirtualenv
+++ b/docker/Dockerfile-dhvirtualenv
@@ -31,8 +31,10 @@ RUN mkdir /dh-virtualenv
 RUN wget -q -O /dh-virtualenv.tar.gz https://github.com/matrix-org/dh-virtualenv/archive/matrixorg-20200519.tar.gz
 RUN tar -xv --strip-components=1 -C /dh-virtualenv -f /dh-virtualenv.tar.gz
 
-# install its build deps
-RUN cd /dh-virtualenv \
+# install its build deps. We do another apt-cache-update here, because we might
+# be using a stale cache from docker build.
+RUN apt-get update -qq -o Acquire::Languages=none \
+    && cd /dh-virtualenv \
     && env DEBIAN_FRONTEND=noninteractive mk-build-deps -ri -t "apt-get -y --no-install-recommends"
 
 # build it