From 5369281dbbf2f19fbca505fad2d627bdd25fe1e6 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 30 Mar 2022 17:22:55 -0500 Subject: [PATCH] Add Dockerfile Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..65876ca --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM julia:1.6.5-bullseye + +ENV JULIA_DEPOT_PATH="/usr/local/share/julia" + +RUN \ + apt-get update && \ + apt-get install -y --no-install-recommends procps && \ + rm -rf /var/lib/apt/lists/* && \ + apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false + +COPY Project.toml / +COPY Manifest.toml / + +RUN julia -e 'using Pkg; Pkg.instantiate()' +RUN julia --project=/ -e 'using Pkg; Pkg.instantiate()' +RUN \ + mv /Project.toml ${JULIA_DEPOT_PATH}/environments/v1.6/ && \ + mv /Manifest.toml ${JULIA_DEPOT_PATH}/environments/v1.6/ + +CMD [ "julia" ]