A docker container to run poetry
Just clone the repo with the usual : git clone https://github.com/airdock-io/docker-python-poetry.git
make build to build the image locallymake helpBe aware that, before it will execute your command it will execute a poetry install to make sure that a venv is created and that command will be executed properly.
See https://python-poetry.org/ for more informations on configration
Then to use the image locally: docker run --rm -v ${PWD}:/app python-poetry:latest
Or to use the image from docker hub: docker run --rm -v ${PWD}:/app airdock/python-poetry:latest
Some of these vars are defined in the Dockerfile and others are not. Vars used by the entrypoint and command should be defined in dockerfile, vars relative to the command are defined (if not in compose environment section) in entrypoint with a default value.
| Var | Default Value |
|---|---|
| HOME | /usr/local/lib |
Every scripts located (or mounted) in the /docker-entrypoint-init.d folder and ending with sh will be executed at startup before the command.
Content type
Image
Digest
Size
100 MB
Last updated
almost 6 years ago
docker pull airdock/python-poetry