Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug: Tornado requires an up-to-date SSL module. This means Python… #100

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@ ARG LASAGNE_VERSION=v0.1
ARG TORCH_VERSION=latest
ARG CAFFE_VERSION=master

ARG PYTHON_BASEDEPS="build-essential python-pip"
ARG PYTHON_BUILDDEPS="libbz2-dev
libc6-dev
libgdbm-dev
libncursesw5-dev
libreadline-gplv2-dev
libsqlite3-dev
libssl-dev
tk-dev"

ARG PYTHON_TARFILE="Python-2.7.9.tgz"
ARG PYTHON_TARHOST="https://www.python.org/ftp/python/2.7.9"
ARG PYTHON_SRCDIR="Python-2.7.9"

RUN apt-get update
RUN apt-get install -y ${PYTHON_BASEDEPS} ${PYTHON_BUILDDEPS}

RUN wget "${PYTHON_TARHOST}/${PYTHON_TARFILE}"
RUN tar xvf ${PYTHON_TARFILE}

RUN cd ${PYTHON_SRCDIR} &&
./configure &&
make &&
make install

# Install some dependencies
RUN apt-get update && apt-get install -y \
bc \
Expand Down Expand Up @@ -76,7 +101,7 @@ RUN apt-get update && apt-get install -y \
doxygen \
&& \
apt-get clean && \
apt-get autoremove && \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/* && \
# Link BLAS library to use OpenBLAS using the alternatives mechanism (https://www.scipy.org/scipylib/building/linux.html#debian-ubuntu)
update-alternatives --set libblas.so.3 /usr/lib/openblas-base/libblas.so.3
Expand Down Expand Up @@ -106,10 +131,11 @@ RUN apt-get update && apt-get install -y \
python-sympy \
&& \
apt-get clean && \
apt-get autoremove && \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*

# Install other useful Python packages using pip
RUN apt-get -y remove ipython
RUN pip --no-cache-dir install --upgrade ipython && \
pip --no-cache-dir install \
Cython \
Expand Down Expand Up @@ -145,7 +171,7 @@ RUN apt-get update && apt-get install -y \
protobuf-compiler \
&& \
apt-get clean && \
apt-get autoremove && \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*

# Install Caffe
Expand Down