docker-BioJulia/Dockerfile
Thomas A. Christensen II 038153a42a
Switch to using latest 1.6 LTS as base image
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2022-04-07 16:25:37 -05:00

20 lines
569 B
Docker

FROM julia:1.6-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(); Pkg.up()'
RUN \
mv /Project.toml ${JULIA_DEPOT_PATH}/environments/v1.6/ && \
mv /Manifest.toml ${JULIA_DEPOT_PATH}/environments/v1.6/
CMD [ "julia" ]