Public Repository

Last pushed: a year ago
Short Description
Centos 6 container building Python2.7.5 programs into stand-alone executables via PyInstaller
Full Description

Centos 6 container building Python2.7.5 programs into stand-alone executables via PyInstaller.

Base From Centos:6

Dockerfile

FROM centos:6 
ADD  setup.sh /opt/setup.sh 
RUN  /bin/bash /opt/setup.sh

setup.sh

#!/bin/bash
yum groupinstall -y "Development tools"
yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel wget bz2

cd /opt
wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2 --no-check-certificate
tar xvf Python-2.7.5.tar.bz2
cd Python-2.7.5
./configure --prefix=/usr/local --enable-shared
make && make altinstall

export LD_LIBRARY_PATH=/usr/local/lib

cd /opt
wget http://pypi.python.org/packages/source/d/distribute/distribute-0.6.27.tar.gz --no-check-certificate
tar xf distribute-0.6.27.tar.gz 
cd distribute-0.6.27
python2.7 setup.py install

easy_install-2.7 pip

pip install --upgrade pip
pip install PyInstaller

cd /opt
wget https://github.com/upx/upx/releases/download/v3.91/upx-3.91-amd64_linux.tar.bz2
tar -xjf upx-3.91-amd64_linux.tar.bz2
Docker Pull Command
Owner
otassetti