File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,15 +3,16 @@ FROM python:3.7.4-slim-stretch
33LABEL maintainer="Igor Davydenko <iam@igordavydenko.com>"
44LABEL description="Add poetry, pre-commit, and other dev-tools to official Python slim stretch Docker image."
55
6- RUN apt update && apt upgrade -y && apt install -y curl git locales locales-all make nano openssh-client && apt autoremove -y
6+ RUN apt update -qq && apt upgrade -y && apt install -y curl git locales locales-all make nano openssh-client && apt autoremove -y
7+
8+ ENV PATH="/root/.local/bin:/root/.poetry/bin:${PATH}"
79
810RUN pip install pip==19.2.3 virtualenv==16.7.5
9- RUN pip install --no-warn-script-location -- user pre-commit==1.18.3 tox==3.14.0
11+ RUN pip install --user pre-commit==1.18.3 tox==3.14.0
1012
1113ENV POETRY_VERSION=0.12.17
1214RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
1315
14- ENV PATH="/root/.local/bin:/root/.poetry/bin:${PATH}"
1516RUN poetry config settings.virtualenvs.create false
1617
1718WORKDIR /app
You can’t perform that action at this time.
0 commit comments