Skip to content

mateusoliveira43/docker-image-poetry

Repository files navigation

Docker Image with Poetry

Continuos Integration Continuos Delivery

Docker Image with Poetry. Check the Docker Hub repository of the image.

Project structure based in the Docker Official Image packaging for Python repository.

Usage

Container

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.

Dockerfile

To use it in a Dockerfile, add

FROM mateusoliveira43/poetry

Or

FROM mateusoliveira43/poetry:<tag>

where tag is one of these.

Development

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.