Docker Image with Poetry. Check the Docker Hub repository of the image.
Project structure based in the Docker Official Image packaging for Python repository.
To connect to the Container's shell, run
docker container run -ti --rm mateusoliveira43/poetry
To exit the Container's shell, run CTRL+D
or exit
.
To use it in a Dockerfile, add
FROM mateusoliveira43/poetry
Or
FROM mateusoliveira43/poetry:<tag>
where tag is one of these.
To build an Image, run
docker image build --tag poetry - < <path_to_Dockerfile>
For example
docker image build --tag poetry - < 1.1/python3.10-slim-bullseye/Dockerfile
To connect to the Container's shell, run
docker container run -ti --rm poetry
To exit the Container's shell, run CTRL+D
or exit
.