github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/containers/utils/image-creator/Dockerfile (about) 1 FROM ubuntu:16.04 2 3 RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && \ 4 apt-get install -y parted kpartx curl qemu-utils dosfstools opam m4 pkg-config wget &&\ 5 apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&\ 6 wget -O bubblewrap.deb http://lug.mtu.edu/ubuntu/pool/main/b/bubblewrap/bubblewrap_0.3.1-2_amd64.deb &&\ 7 dpkg -i bubblewrap.deb &&\ 8 #opam init --disable-sandboxing --reinit -y && opam switch 4.06.0 9 wget -O /usr/local/bin/opam https://github.com/ocaml/opam/releases/download/2.0.1/opam-2.0.1-x86_64-linux &&\ 10 chmod a+x /usr/local/bin/opam &&\ 11 yes '' | opam init --disable-sandboxing --reinit -y && yes '' | opam switch create 4.06.0 &&\ 12 cd /tmp/ && \ 13 yes '' | opam source fat-filesystem --dir ocaml-fat && \ 14 cd /tmp/ocaml-fat && \ 15 yes '' | opam pin add fat-filesystem . -n -y && \ 16 yes '' | opam install fat-filesystem --verbose -y 17 18 ENV CAML_LD_LIBRARY_PATH="/root/.opam/system/lib/stublibs:/usr/lib/ocaml/stublibs" 19 ENV MANPATH="/root/.opam/system/man:" 20 ENV PERL5LIB="/root/.opam/system/lib/perl5" 21 ENV OCAML_TOPLEVEL_PATH="/root/.opam/system/lib/toplevel" 22 ENV PATH="/root/.opam/system/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" 23 24 COPY image-creator / 25 26 ENTRYPOINT ["/image-creator"]