Public Repository

Last pushed: 6 months ago
Short Description
Short description is empty for this repo.
Full Description

FROM bitnami/minideb:jessie

RUN apt-get update && apt-get install -y \
curl \
gcc \
g++ \
make \
locales \
python3 \
python3-psycopg2 \
python3-setuptools \
python3-cffi \
python3-dev \
libssl-dev \
zlib1g-dev

switch to python 3.5

RUN curl -OL https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
RUN tar xvf Python-3.5.2.tgz && cd Python-3.5.2 && \
./configure --with-ensurepip=install --prefix=/usr/local && \
make -j8 && make install
RUN rm Python-3.5.2.tgz
RUN update-alternatives --install /usr/bin/python python /usr/local/bin/python3.5 1

set en_US.UTF-8 locale

RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8 && update-locale LC_ALL=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8

RUN ls /usr/local/bin
RUN update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.5 1 && pip3 install pip --upgrade

Docker Pull Command
Owner
lariat

Comments (0)