Skip to content

Instantly share code, notes, and snippets.

@aahnik
Last active May 26, 2021 04:11
Show Gist options
  • Select an option

  • Save aahnik/d7940ddad86e1f2858264d7254ec5727 to your computer and use it in GitHub Desktop.

Select an option

Save aahnik/d7940ddad86e1f2858264d7254ec5727 to your computer and use it in GitHub Desktop.
Python package manager poetry, in a docker image. Base your docker image on this, to get poetry out of the box. https://hub.docker.com/r/aahnik/poetry-docker

How to use?

[warning] aahnik/poetry-docker is no longer maintained. Build and publish your own image

interactively

$ docker run -it aahnik/poetry-docker
# will open bash shell inside the container
# run poetry --version to check

inside your Dockerfile

FROM aahnik/poetry-docker

...

The default (latest) tag offers the latest stable version of Python and poetry.

FROM python:3.9
WORKDIR /app
RUN apt-get update && apt-get upgrade -y
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
ENV PATH /root/.local/bin:$PATH
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment