File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,18 @@ MAINTAINER "Dmitry Berezovsky <dmitry.berezovsky@logicify.com>"
4
4
ENV APPLICATION_DIR="/srv/application"
5
5
6
6
# 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 \
8
9
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
10
18
11
- # Install pip3
12
- RUN curl https://bootstrap.pypa.io/get-pip.py | python3.5
13
19
# install virtualenv
14
20
RUN pip3 install virtualenv
15
21
You can’t perform that action at this time.
0 commit comments