Skip to content

Instantly share code, notes, and snippets.

Created March 9, 2015 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/9db1ce5252adbe8c9803 to your computer and use it in GitHub Desktop.
Save anonymous/9db1ce5252adbe8c9803 to your computer and use it in GitHub Desktop.
# Minimal Dockerfile for downloading and running
# generic Linux Julia binaries on Ubuntu 14.04
# Or pick any other distribution and adjust the apt-get lines
FROM ubuntu:14.04
MAINTAINER Tony Kelman <tony@kelman.net>
RUN apt-get update && \
apt-get install git curl -y && \
mkdir -p /home/user/julia && \
curl -s -L https://status.julialang.org/stable/linux-x86_64 | \
tar -C /home/user/julia -x -z --strip-components=1 -f - && \
export PATH=$PATH:/home/user/julia/bin && \
julia -e 'Base.runtests()'
# comment out that last line for faster build without running tests
@tkelman
Copy link

tkelman commented Mar 9, 2015

whoops the path bit won't work, you'll need to do something like ENV PATH $PATH:/home/user/julia/bin

and I guess people like to do apt-get clean to save space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment