-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (25 loc) · 1.16 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM jupyter/scipy-notebook:177037d09156
MAINTAINER Maksim Tsikhanovich <github.com/maksimt>
USER root
VOLUME /emp_priv
WORKDIR /emp_priv
RUN chown -R jovyan:users /emp_priv
ENV PYTHONPATH "/emp_priv/src/:${PYTHONPATH}"
RUN mkdir /datasets && \
cd /datasets && \
echo "Downloading Online News & Million Songs & MovieLens-1M Datasets" && \
wget -q -t 3 -O OnlineNews.zip https://archive.ics.uci.edu/ml/machine-learning-databases/00332/OnlineNewsPopularity.zip && \
wget -q -t 3 -O MillionSongs.zip https://archive.ics.uci.edu/ml/machine-learning-databases/00203/YearPredictionMSD.txt.zip && \
wget -q -t 3 -O ML1M.zip http://files.grouplens.org/datasets/movielens/ml-1m.zip && \
unzip OnlineNews.zip && \
unzip MillionSongs.zip && \
unzip ML1M.zip && \
rm ML1M.zip && \
rm OnlineNews.zip && \
rm MillionSongs.zip && \
chown -R jovyan:users /datasets
RUN python -c "from sklearn.datasets.twenty_newsgroups import fetch_20newsgroups;\
fetch_20newsgroups(data_home='/datasets', subset='all')"
RUN conda install -f -y mkl blas=*=mkl
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt