Skip to content

Commit 08d3e2b

Browse files
author
Dmitry Berezovsky
committed
Updated python to version 3.5.0
1 parent 4164c2a commit 08d3e2b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ MAINTAINER "Dmitry Berezovsky <dmitry.berezovsky@logicify.com>"
44
ENV APPLICATION_DIR="/srv/application"
55

66
# Install required packages
7-
RUN yum -y install python35 python-virtualenv postgresql-devel gcc python35-devel \
7+
RUN yum update -y; yum clean all
8+
RUN yum-builddep -y python; yum -y install make postgresql-devel gcc \
89
libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel \
9-
libxslt-devel libxml2-devel
10+
libxslt-devel libxml2-devel; yum clean all
11+
12+
ENV PYTHON_VERSION="3.5.0"
13+
# Downloading and building python
14+
RUN mkdir /tmp/python-build && cd /tmp/python-build && \
15+
curl https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz > python.tgz && \
16+
tar xzf python.tgz && cd Python-$PYTHON_VERSION && \
17+
./configure --prefix=/usr/local && make install && cd / && rm -rf /tmp/python-build
1018

11-
# Install pip3
12-
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.5
1319
# install virtualenv
1420
RUN pip3 install virtualenv
1521

0 commit comments

Comments
 (0)