1
0
mirror of https://github.com/tmaier/docker-compose synced 2024-11-22 16:01:59 +01:00

Change: use python3

also delete unneeded dependencies afterwards, savings are 200MB+
This commit is contained in:
Hans van den Bogert 2020-04-10 22:36:23 +02:00
parent aa33a2b980
commit ca6266ee53

@ -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 <tobias.maier@baucloud.com>" \