btr1975/apache-py2-django

Repository files navigation

This image is for Python Django Apps written in Python 2

  • Python: 2.7.12
  • Apache: 2.4.18 (Ubuntu) with mod_wsgi
  • Django: 1.11.2
  • Django-Localflavor: 1.5.1
  • MySQL-python: 1.2.5
  • Python: 2.7.12
  • Apache: 2.4.18 (Ubuntu) with mod_wsgi
  • Django: 1.11.2
  • Django-Localflavor: 1.5.1
  • MySQL-python: 1.2.5
  • apache-site-conf.py: 1.0.0.prod
  • Python: 2.7.12
  • Apache: 2.4.18 (Ubuntu) with mod_wsgi
  • Django: 1.11.2
  • Django-Localflavor: 1.5.1
  • MySQL-python: 1.2.5
  • apache-site-conf.py: 1.0.1.prod
  • apache-site-conf.sh: 1.0 prod
  • Added ENV SITE_DIRECTORY_NAME, to bot conf build scripts, to helb build easier
  • latest
  • 1.1
  • 1.2
  • 1.3
  • 1.4

Updated Python script that builds the apache conf file Added a bash script that builds the apache conf file Both scripts do the same thing, so use whichever you want.

There are 3 important ENV varibales you should use when using this

ENV SITE_SERVER_NAME
ENV SITE_SERVER_ADMIN
ENV SITE_DIRECTORY_NAME

Set these befor running the apache-site-conf.py, or apache-site-conf.sh script.

FROM btr1975/apache-py2-django:1.4

ENV SITE_SERVER_NAME="www.example.com"
ENV SITE_SERVER_ADMIN="[email protected]"
ENV SITE_DIRECTORY_NAME="SomeDir"

COPY ./SomeDir .

RUN chmod 755 -R /DjangoSites \
    && /bin/apache-site-conf.sh

About

Dockerfile to Build Web Server for Django Apps Python

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published