Skip to content

Instantly share code, notes, and snippets.

@gh640
Created January 4, 2020 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gh640/5ac7e01a2849e91b61ad2769e0bb89eb to your computer and use it in GitHub Desktop.
Save gh640/5ac7e01a2849e91b61ad2769e0bb89eb to your computer and use it in GitHub Desktop.
Sample: Python Poetry installation in Docker container
FROM python:3.8
ENV POETRY_VERSION=1.0.0 \
PATH="/root/.poetry/bin:$PATH"
WORKDIR /app
RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/${POETRY_VERSION}/get-poetry.py | python && \
poetry config virtualenvs.create false
@gh640
Copy link
Author

gh640 commented Jan 4, 2020

docker-compose.yml:

version: "3"

services:
  python:
    build: .

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