diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-15 14:58:20 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-15 14:58:20 +0100 |
commit | 1f77d176055e11b1f47039afa7f8492b755ff02e (patch) | |
tree | fdfb865f8eeee965a9afe24fdd077808316a370d | |
parent | db9419e62d3760c02561a9e7a3d017e4f6ff3f4f (diff) | |
download | vyos-build-1f77d176055e11b1f47039afa7f8492b755ff02e.tar.gz vyos-build-1f77d176055e11b1f47039afa7f8492b755ff02e.zip |
Docker: add retry options when fetching OPAM from GitHub
-rw-r--r-- | docker/Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 34733195..01075a7a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -96,7 +96,8 @@ RUN apt-get update && apt-get install -y \ libffi-dev \ libpcre3-dev -RUN curl https://raw.githubusercontent.com/ocaml/opam/2.0.2/shell/install.sh --output /tmp/opam_install.sh && \ +RUN curl https://raw.githubusercontent.com/ocaml/opam/2.0.2/shell/install.sh \ + --output /tmp/opam_install.sh --retry 10 --retry-delay 5 && \ sed -i 's/read BINDIR/BINDIR=""/' /tmp/opam_install.sh && sh /tmp/opam_install.sh && \ opam init --root=/opt/opam --comp=4.08.0 --disable-sandboxing |