Simple Docker image for running zero configuration Python projects with Poetry dependency management.
Getting python up and running can be difficult. This docker image provides a recent version of Python, with Poetry for packaging and dependency management ready to use for your project, without any additional setup.
(WIP: New container images are pushed to Docker Hub after Dependabot PRs are merged)
In the directory of your python project, run this:
docker run --rm -ti -v "$PWD:/var/app" svandragt/pyshed
Additional arguments are passed to poetry directly.
poetry init:
docker run --rm -ti -v "$PWD:/var/app" svandragt/pyshed init
poetry install:
docker run --rm -ti -v "$PWD:/var/app" svandragt/pyshed install
start django server (visit http://localhost:8000):
docker run -p 8000:8000 --rm -ti -v "$PWD:/var/app" svandragt/pyshed run ./manage.py runserver 0.0.0.0:8000