An open API service indexing awesome lists of open source software.

https://github.com/lilyprism/python-ready-docker

Python Ready Docker Images for Git Repos
https://github.com/lilyprism/python-ready-docker

docker git python39

Last synced: 9 months ago
JSON representation

Python Ready Docker Images for Git Repos

Awesome Lists containing this project

README

          

# PythonReady Docker
Python Ready Docker Images

Serves as helper to deploy multiple django apps without creating a dockerfile for each one

### Uses Python 3.11
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

### You must use these Environment Variables:
GITHUB_USER

GITHUB_TOKEN

GIT_REPO as github.com/(user)/(repo).git

### You can mount:
/home/app/repo -> Where the repo files will be downloaded and be kept updated

/root/.local/share/virtualenvs (if using pipenv)

### start.sh example:
```bash
#!/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
```