This repository was archived by the owner on Nov 4, 2022. It is now read-only.
File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 3
3
FROM ubuntu:16.04
4
4
5
5
6
+ ADD package_installs.jl /tmp/package_installs.jl
7
+
6
8
RUN apt-get update && \
7
9
apt-get install git software-properties-common curl wget libcairo2 libpango1.0-0 -y && \
8
10
add-apt-repository ppa:staticfloat/julia-deps -y && \
@@ -16,16 +18,13 @@ RUN apt-get update && \
16
18
# Use generic instruction set; see https://github.com/JuliaLang/julia/pull/6220
17
19
# and https://groups.google.com/forum/#!topic/julia-dev/Eqp0GhZWxME
18
20
echo "JULIA_CPU_TARGET=core2" > Make.user && \
19
- make -j 4 julia-deps
20
-
21
- ADD package_installs.jl /tmp/package_installs.jl
21
+ make -j 4 julia-deps && make -j 4 && make install && \
22
+ ln -s /usr/local/src/julia/julia /usr/local/bin/julia
22
23
23
- RUN cd /usr/local/src/julia && make && make install && \
24
- ln -s /usr/local/src/julia/julia /usr/local/bin/julia && \
25
- julia /tmp/package_installs.jl
26
24
27
25
# Pre-compiling packages within a Julia session doesn't seem to work at the moment.
28
- RUN julia -e "Base.compilecache(\" BinDeps\" )" && \
26
+ RUN julia /tmp/package_installs.jl && \
27
+ julia -e "Base.compilecache(\" BinDeps\" )" && \
29
28
julia -e "Base.compilecache(\" Cairo\" )" && \
30
29
julia -e "Base.compilecache(\" Calculus\" )" && \
31
30
julia -e "Base.compilecache(\" Clustering\" )" && \
You can’t perform that action at this time.
0 commit comments