-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
27 lines (21 loc) · 637 Bytes
/
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
FROM jupyter/base-notebook:latest
USER root
RUN \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y build-essential git && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
COPY notebooks/ ${HOME}
RUN chown -R ${NB_UID} ${HOME}
USER $NB_USER
RUN \
conda install autograd matplotlib numpy pandas patsy scikit-learn scipy && \
conda install -c conda-forge cvxopt glpk keras tensorflow && \
conda install -c cvxgrp ecos multiprocess scs
RUN \
git clone https://github.com/cvxgrp/cvxpy.git /tmp/cvxpy && \
cd /tmp/cvxpy && \
git checkout 1.0 && \
python setup.py install && \
rm -rf /tmp/cvxpy