summary refs log tree commit diff
path: root/docker
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-02-14 17:29:40 +0000
committerRichard van der Hoff <richard@matrix.org>2019-02-14 17:29:40 +0000
commit649fe1c2be69676ffd73c9ad1807ea0bc747b003 (patch)
tree108ba79eacd1658c5abe4b62f07671032cf1bb7a /docker
parent0.99.1.1 (diff)
downloadsynapse-649fe1c2be69676ffd73c9ad1807ea0bc747b003.tar.xz
Fix debian build dockerfile github/release-v0.99.1 release-v0.99.1
Make sure it refreshes the apt cache before trying to install stuff
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile-dhvirtualenv6
1 files changed, 5 insertions, 1 deletions
diff --git a/docker/Dockerfile-dhvirtualenv b/docker/Dockerfile-dhvirtualenv
index ab28e49291..224c92352d 100644
--- a/docker/Dockerfile-dhvirtualenv
+++ b/docker/Dockerfile-dhvirtualenv
@@ -58,7 +58,11 @@ RUN apt-get update -qq -o Acquire::Languages=none \
         sqlite3
 
 COPY --from=builder /dh-virtualenv_1.1-1_all.deb /
-RUN apt-get install -yq /dh-virtualenv_1.1-1_all.deb
+
+# install dhvirtualenv. Update the apt cache again first, in case we got a
+# cached cache from docker the first time.
+RUN apt-get update -qq -o Acquire::Languages=none \
+    && apt-get install -yq /dh-virtualenv_1.1-1_all.deb
 
 WORKDIR /synapse/source
 ENTRYPOINT ["bash","/synapse/source/docker/build_debian.sh"]