Created
May 6, 2019 01:26
-
-
Save takuan-osho/2ad74e559b22291cc9daea4aa7e9750b to your computer and use it in GitHub Desktop.
Dockerfile for python with poetry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7-slim | |
# Set environment variables | |
ENV PYTHONDONTWRITEBYTECODE 1 | |
ENV PYTHINUNBUFFERED 1 | |
WORKDIR /code | |
COPY poetry.lock pyproject.toml /code/ | |
RUN pip install poetry | |
RUN poetry config settings.virtualenvs.create false | |
RUN poetry install --no-interaction | |
COPY . /code/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment