Created
January 29, 2018 01:59
-
-
Save jovianlin/52ad78122c5deac450639110b340edc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reference: https://hub.docker.com/_/ubuntu/ | |
FROM ubuntu:16.04 | |
# Adds metadata to the image as a key value pair example LABEL version="1.0" | |
LABEL maintainer="Hamel Husain <youremail@gmail.com>" | |
# Set environment variables | |
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 | |
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \ | |
build-essential \ | |
byobu \ | |
curl \ | |
git-core \ | |
htop \ | |
pkg-config \ | |
python3-dev \ | |
python-pip \ | |
python-setuptools \ | |
python-virtualenv \ | |
unzip \ | |
&& \ | |
apt-get clean \ | |
&& \ | |
rm -rf /var/lib/apt/lists/* | |
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \ | |
wget --quiet https://repo.continuum.io/archive/Anaconda3-5.0.0.1-Linux-x86_64.sh -O ~/anaconda.sh && \ | |
/bin/bash ~/anaconda.sh -b -p /opt/conda && \ | |
rm ~/anaconda.sh | |
ENV PATH /opt/conda/bin:$PATH | |
RUN pip --no-cache-dir install --upgrade \ | |
altair \ | |
sklearn-pandas | |
# Open Ports for Jupyter | |
EXPOSE 7745 | |
# Setup File System | |
RUN mkdir ds | |
ENV HOME=/ds | |
ENV SHELL=/bin/bash | |
VOLUME /ds | |
WORKDIR /ds | |
ADD run_jupyter.sh /ds/run_jupyter.sh | |
RUN chmod +x /ds/run_jupyter.sh | |
# Run a shell script | |
CMD ["./run_jupyter.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment