Public Repository

Last pushed: 2 years ago
Short Description
CentOS7.2.1511 + python2.7 + uwsgi + Django1.9.1
Full Description

Container

CentOS (7.2.1511)
Python (2.7.5)
Django (1.9.1)
uWSGI (2.0.12)

Dockerfile

# web_app, centos + python + uwsgi + django

FROM centos:7.2.1511

# need gcc when build some python packages, like uwsgi
RUN yum install -y gcc.x86_64

# netstat
RUN yum install -y net-tools.x86_64

# python lib and header files
RUN yum install -y python-devel.x86_64

RUN yum install -y wget
RUN wget https://bootstrap.pypa.io/ez_setup.py
RUN python ez_setup.py
RUN easy_install pip

RUN pip install --upgrade pip

RUN pip install Django==1.9.1
RUN pip install uwsgi
RUN pip install pycrypto
RUN pip install ConcurrentLogHandler

ENV TARGET_DIR /data/data-srv/titan-data
WORKDIR ${TARGET_DIR}
ADD uwsgi.ini ${TARGET_DIR}/uwsgi/

EXPOSE 8001

ENTRYPOINT ["/bin/bash", "/var/titanagent/setup/setup.sh"]

Start container

docker run -v /var/titanagent:/var/titanagent -v /var/log/titanagent:/var/log/titanagent  -d -p 127.0.0.1:8001:8001/tcp -it qingteng/web_app debug
Docker Pull Command
Owner
qingteng

Comments (0)