Skip to content

Instantly share code, notes, and snippets.

@jthorniley
Created January 9, 2020 07:00
Show Gist options
  • Save jthorniley/fba81c62a9d45c723777c7205ff96481 to your computer and use it in GitHub Desktop.
Save jthorniley/fba81c62a9d45c723777c7205ff96481 to your computer and use it in GitHub Desktop.
Install Poetry in Docker devcontainer
USER vscode
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - --version=0.12.17
ENV PATH "/home/vscode/.poetry/bin:$PATH"
@joarobles
Copy link

You could also set the variable in the local poetry config file poetry.toml:

[virtualenvs]
in-project = true

Or using the CLI:

poetry config virtualenvs.in-project true --local

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