Python Ready Docker Images
Serves as helper to deploy multiple django apps without creating a dockerfile for each one
Git repo must have a start.sh file at the root of the repo that is executed after setup is complete.
includes nodejs 18 includes pipenv GDAL only on -GDAL tagged versions
GITHUB_USER
GITHUB_TOKEN
GIT_REPO as github.com/(user)/(repo).git
/home/app/repo -> Where the repo files will be downloaded and be kept updated
/root/.local/share/virtualenvs (if using pipenv)
#!/bin/sh
echo "Installing pipenv requirements"
pipenv clean
pipenv install
echo "Running django startup"
pipenv run python manage.py collectstatic --no-input
pipenv run gunicorn app.wsgi --workers 4 --bind 0.0.0.0:8000 --preload --timeout 0 --log-level "debug" --enable-stdio-inheritance