Skip to content

Instantly share code, notes, and snippets.

@robintw
Created July 2, 2016 08:41
Show Gist options
  • Save robintw/ffdbaedebd77a9469ba97dafff22b51d to your computer and use it in GitHub Desktop.
Save robintw/ffdbaedebd77a9469ba97dafff22b51d to your computer and use it in GitHub Desktop.
Dockerfile to build Py6S container using apt-get to install dependencies
# This Dockerfile builds a container
# (describe ..)
FROM ubuntu:14.04
MAINTAINER Sam Murphy <[email protected]>
ENV Python_version 3.4.3
RUN apt-get update && apt-get install -y \
gfortran \
wget \
python3-matplotlib \
python3-scipy \
&& rm -rf /var/lib/apt/lists/*
# install pip
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python3 get-pip.py
RUN rm -f get-pip.py
# install python packages
RUN pip install Py6S
# download and install the 6S executable
RUN wget https://www.dropbox.com/s/48bhztqqepbpci1/6S_JustExecutable.targz
RUN tar -xvf 6S_JustExecutable.targz -C /usr/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment