Skip to content

Commit

Permalink
Merge pull request UBC-MDS#67 from wang-rui/main
Browse files Browse the repository at this point in the history
Update dockerfile
  • Loading branch information
athy9193 authored Dec 12, 2020
2 parents d4fcceb + 5ee508f commit db7fd08
Showing 1 changed file with 42 additions and 33 deletions.
75 changes: 42 additions & 33 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,60 @@
############################################################

#Set base image to Ubuntu
FROM selenium/standalone-chrome
FROM jupyter/scipy-notebook

#Update repositor source list
RUN sudo apt-get update

################## BEGIN INSTALLATION ######################
#Install python basics
RUN sudo apt-get -y install \
build-essential \
python-dev \
python-setuptools

# Create Timezon Variable
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Beijing
# Install tzdata
RUN sudo apt-get install -y tzdata

# Install python pip
RUN sudo apt-get -y install python3-pip
USER root
RUN wget -N http://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip
RUN unzip chromedriver_linux64.zip -d /app

RUN sudo apt-get -y install git-all
# needed for installing Chrome
RUN apt-get update && apt-get install -y gnupg2
RUN apt-get install -y xvfb

#Install other dependancies
RUN sudo pip3 install matplotlib>=3.2.2
RUN sudo pip3 install scikit-learn>=0.23.2
RUN sudo pip3 install scipy==1.5.3
RUN sudo pip3 install numpy>=1.19.4
RUN sudo pip3 install pandas>=1.1.3
RUN sudo pip3 install matplotlib>=3.3.3
RUN sudo pip3 install requests>=2.24.0
RUN sudo pip3 install graphviz
RUN sudo pip3 install altair>=4.1.0
RUN sudo pip3 install jinja2
RUN sudo pip3 install pip>=20
RUN sudo pip3 install pandas-profiling>=1.4.3
RUN sudo pip3 install psutil>=5.7.2
RUN sudo pip3 install xgboost>=1.*
RUN sudo pip3 install lightgbm>=3.*
RUN sudo pip3 install git+git://github.com/mgelbart/plot-classifier.git
RUN sudo pip3 install altair-saver==0.5.0
RUN sudo pip3 install docopt==0.6.2
RUN sudo pip3 install selenium==3.141.0
RUN sudo pip3 install webdriver-manager==3.2.2
# pip install required libraries
RUN pip install psutil>=5.7.2\
git+git://github.com/mgelbart/plot-classifier.git\
chromedriver-binary-auto

# install Chrome to use with altair save
RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
apt-get update && \
apt-get install -y google-chrome-stable && \
rm -rf /var/lib/apt/lists/*

#Install other dependancies
RUN pip3 install matplotlib>=3.2.2
RUN pip3 install scikit-learn>=0.23.2
RUN pip3 install scipy==1.5.3
RUN pip3 install numpy>=1.19.4
RUN pip3 install pandas>=1.1.3
RUN pip3 install matplotlib>=3.3.3
RUN pip3 install requests>=2.24.0
RUN pip3 install graphviz
RUN pip3 install altair>=4.1.0
RUN pip3 install jinja2
RUN pip3 install pip>=20
RUN pip3 install pandas-profiling>=1.4.3
RUN pip3 install psutil>=5.7.2
RUN pip3 install xgboost>=1.*
RUN pip3 install lightgbm>=3.*
RUN pip3 install git+git://github.com/mgelbart/plot-classifier.git
RUN pip3 install altair-saver==0.5.0
RUN pip3 install docopt==0.6.2
RUN pip3 install selenium==3.141.0
RUN pip3 install webdriver-manager==3.2.2

RUN conda install -y -c anaconda python-chromedriver-binary


CMD ["echo Finish Creating Docker Image!"]

0 comments on commit db7fd08

Please sign in to comment.