Example of a Dockerfile with Poetry and Google Cloud Build.
You can have more explaination in the article I wrote here.
Building image:
$ docker build --tag poetry --file docker/Dockerfile .
Building image with specific target
$ docker build --target development -t poetry --file docker/Dockerfile .
Running built image
$ docker run -p 8888:8888 -it poetry
Getting a shell
$ docker run -p 8888:8888 --entrypoint /bin/bash -it poetry
Thanks: