Skip to content

Commit c87a5b9

Browse files
chore: First set up path, then install pre-commit & tox to user dir.
1 parent 6d94727 commit c87a5b9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ FROM python:3.7.4-slim-stretch
33
LABEL maintainer="Igor Davydenko <iam@igordavydenko.com>"
44
LABEL 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

810
RUN 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

1113
ENV POETRY_VERSION=0.12.17
1214
RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
1315

14-
ENV PATH="/root/.local/bin:/root/.poetry/bin:${PATH}"
1516
RUN poetry config settings.virtualenvs.create false
1617

1718
WORKDIR /app

0 commit comments

Comments
 (0)