From ca6266ee53d37beab88aac57519a33a997826d98 Mon Sep 17 00:00:00 2001 From: Hans van den Bogert Date: Fri, 10 Apr 2020 22:36:23 +0200 Subject: [PATCH] Change: use python3 also delete unneeded dependencies afterwards, savings are 200MB+ --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5c43d8d..892c09b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,10 @@ FROM docker:${DOCKER_VERSION} ARG COMPOSE_VERSION= ARG DOCKER_VERSION -RUN apk add --no-cache py-pip python-dev libffi-dev openssl-dev gcc libc-dev make -RUN pip install "docker-compose${COMPOSE_VERSION:+==}${COMPOSE_VERSION}" +RUN apk add --no-cache py3-pip +RUN apk add --virtual build-dependencies python3-dev libffi-dev openssl-dev gcc libc-dev make \ + && pip3 install "docker-compose${COMPOSE_VERSION:+==}${COMPOSE_VERSION}" \ + && apk del build-dependencies LABEL \ org.opencontainers.image.authors="Tobias Maier " \