-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
22 lines (18 loc) · 903 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# syntax=docker/dockerfile:1
FROM julia:1.11.2
# Install git
RUN /bin/sh -c 'export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y git \
&& apt-get --purge autoremove -y \
&& apt-get autoclean \
&& rm -rf /var/lib/apt/lists/*'
# Docker is awful and doesn't allow conditionally setting environment variables in a decent
# way, so we have to keep an external script and source it every time we need it.
COPY julia_cpu_target.sh /julia_cpu_target.sh
RUN julia --color=yes -e 'using InteractiveUtils; versioninfo()'
# Instantiate Julia project
RUN mkdir -p /root/.julia/environments/v1.11
COPY Project.toml /root/.julia/environments/v1.11/Project.toml
COPY Manifest-v1.11.toml /root/.julia/environments/v1.11/Manifest.toml
RUN . /julia_cpu_target.sh && julia --color=yes -e 'using Pkg; Pkg.gc(); Pkg.instantiate(); import Conda; Conda.add("jupyterlab")'