Docker: T3363: Force no-setup mode for opam init

This commit is contained in:
Cody Brannan 2021-02-27 00:29:53 -05:00
parent 1de3f19a28
commit a08dab340f

View File

@ -119,7 +119,7 @@ RUN dpkg-reconfigure ca-certificates; \
RUN curl https://raw.githubusercontent.com/ocaml/opam/master/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.09.1 --disable-sandboxing
opam init --root=/opt/opam --comp=4.09.1 --disable-sandboxing -n
RUN eval $(opam env --root=/opt/opam --set-root) && opam install -y \
pcre re