-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathDockerfile
33 lines (23 loc) · 1.2 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM andrewosh/binder-base
MAINTAINER Stephen Eglen <[email protected]>
USER root
## https://github.com/docker-library/julia/blob/master/Dockerfile
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*
ENV JULIA_PATH /usr/local/julia
ENV JULIA_VERSION 0.6.0
RUN mkdir $JULIA_PATH \
&& apt-get update && apt-get install -y curl \
&& curl -sSL "https://julialang-s3.julialang.org/bin/linux/x64/${JULIA_VERSION%[.-]*}/julia-${JULIA_VERSION}-linux-x86_64.tar.gz" -o julia.tar.gz \
&& curl -sSL "https://julialang-s3.julialang.org/bin/linux/x64/${JULIA_VERSION%[.-]*}/julia-${JULIA_VERSION}-linux-x86_64.tar.gz.asc" -o julia.tar.gz.asc \
&& export GNUPGHOME="$(mktemp -d)" \
# http://julialang.org/juliareleases.asc
# Julia (Binary signing key) <[email protected]>
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 3673DF529D9049477F76B37566E3C7DC03D6E495 \
&& gpg --batch --verify julia.tar.gz.asc julia.tar.gz \
&& rm -r "$GNUPGHOME" julia.tar.gz.asc \
&& tar -xzf julia.tar.gz -C $JULIA_PATH --strip-components 1 \
&& rm -rf /var/lib/apt/lists/* julia.tar.gz*
ENV PATH $JULIA_PATH/bin:$PATH
RUN julia -e 'Pkg.add("IJulia"); Pkg.update()'