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
- Host: GitHub
- URL: https://github.com/lilyprism/python-ready-docker
- Owner: lilyprism
- License: bsd-3-clause
- Created: 2021-06-08T11:09:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-18T15:40:34.000Z (about 1 year ago)
- Last Synced: 2025-02-04T16:47:04.484Z (11 months ago)
- Topics: docker, git, python39
- Language: Dockerfile
- Homepage: https://hub.docker.com/repository/docker/lilyprism/djangoready/
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```