Public Repository

Last pushed: 2 months ago
Short Description
Centos7 with Python 3.4
Full Description

FROM centos:centos7
MAINTAINER Greg McCoy gregmccoy@gfa.org

ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV PYTHON_VERSION 3.4.4

RUN yum -y update; yum clean all
RUN yum groupinstall -y "Development tools"
RUN yum install -y vim wget tar gcc make openssl openssl-devel postgresql-devel GeoIP git

RUN cd /opt \
&& curl -O https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz \
&& tar xf Python-3.4.3.tar.xz && cd Python-3.4.3 \
&&./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" \
&& make \
&& make altinstall && cd /opt \
&& rm -f Python-3.4.3.tar.xz \
&& rm -rf Python-3.4.3/

RUN useradd -ms /bin/bash ubuntu

WORKDIR /home/ubuntu
RUN pip3.4 install virtualenv
RUN virtualenv venv
RUN source venv/bin/activate
RUN /home/ubuntu/venv/bin/pip install gunicorn
CMD ["/bin/bash "]

Docker Pull Command
Owner
gregmccoy

Comments (0)