Skip to content

Instantly share code, notes, and snippets.

@a-recknagel
Last active April 12, 2021 15:01
Show Gist options
  • Save a-recknagel/dddfce44ffa8e6eacd5c06f64cfe0bb0 to your computer and use it in GitHub Desktop.
Save a-recknagel/dddfce44ffa8e6eacd5c06f64cfe0bb0 to your computer and use it in GitHub Desktop.
ubuntu 18.04 with poetry
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget curl
RUN wget https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tgz
RUN tar -xf Python-3.9.4.tgz
RUN cd Python-3.9.4 && ./configure && make install
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
ENV PATH "$PATH:/root/.poetry/bin"
@a-recknagel
Copy link
Author

a-recknagel commented Apr 12, 2021

  • build image: docker build -t poet .
  • run container: docker run -it poet
  • in container, this should work: poetry new test && cd test && poetry lock && poetry show

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment