Skip to content

Instantly share code, notes, and snippets.

@mjhea0
Last active January 29, 2020 22:43
Show Gist options
  • Select an option

  • Save mjhea0/03fdaa4ff1e0311d7651e6a815d01583 to your computer and use it in GitHub Desktop.

Select an option

Save mjhea0/03fdaa4ff1e0311d7651e6a815d01583 to your computer and use it in GitHub Desktop.
centos 6 + python 2.6 Dockerfile https://hub.docker.com/r/mjhea0/centos-6-python-2.6/
# base image
FROM centos:6
# install epel
RUN rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 \
&& yum install -y epel-release
# install python
RUN yum install -y \
git \
python-pep8 \
python-setupdocs \
python-setuptools \
rpm-build \
python-pip \
postgresql \
postgresql-devel \
python-cffi \
libffi-devel \
gcc \
python-devel \
openssl-devel \
python-psycopg2 \
&& yum clean all
@mjhea0
Copy link
Copy Markdown
Author

mjhea0 commented Oct 20, 2017

# set working directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# add requirements
ADD ./requirements.txt /usr/src/app/requirements.txt

# install requirements
RUN pip install cffi --upgrade
RUN pip install psycopg2==2.0.14
RUN pip install virtualenv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment