Browse Source

Fix debian build dockerfile

Make sure it refreshes the apt cache before trying to install stuff
Richard van der Hoff 5 years ago
parent
commit
649fe1c2be
1 changed files with 5 additions and 1 deletions
  1. 5 1
      docker/Dockerfile-dhvirtualenv

+ 5 - 1
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"]