From 48419a530d3405fda0b22de3af16064f5f86aa3f Mon Sep 17 00:00:00 2001 From: will king Date: Thu, 3 Aug 2023 18:35:31 -0700 Subject: [PATCH] added Dockerfile to create Julia/Pluto containers --- oci_container/Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 oci_container/Dockerfile diff --git a/oci_container/Dockerfile b/oci_container/Dockerfile new file mode 100644 index 0000000..7087d66 --- /dev/null +++ b/oci_container/Dockerfile @@ -0,0 +1,25 @@ +FROM debian:latest +MAINTAINER youainti@youainti.com +RUN apt update +RUN apt install -y vim +RUN apt install -y curl + +#add user +RUN useradd julia +USER julia +WORKDIR /home/julia +#setup basic files +RUN touch .profile +RUN touch .bashrc + +#install julia +RUN curl -fsSL https://install.julialang.org > juliaup_installer.sh +RUN sh juliaup_installer.sh -y +RUN rm juliaup_installer.sh + + +#install pluto +RUN ~/.juliaup/bin/julia -e 'using Pkg; Pkg.add("Pluto")' + +#entrypoint +CMD ~/.juliaup/bin/julia -e 'using Pluto; Pluto.run(;host="0.0.0.0")'