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

22 lines
1.0 KiB
Docker
Raw Normal View History

2018-04-29 05:22:04 +02:00
ARG DOCKER_VERSION=latest
FROM docker:${DOCKER_VERSION}
2017-01-04 01:09:06 +01:00
ARG COMPOSE_VERSION=
ARG DOCKER_VERSION
RUN apk add --no-cache py3-pip python3
RUN apk add --no-cache --virtual build-dependencies python3-dev libffi-dev openssl-dev gcc libc-dev make \
&& apk add --no-cache --virtual build-dependencies-after-compose-v1.28.x rust cargo || true \
&& pip3 install "docker-compose${COMPOSE_VERSION:+==}${COMPOSE_VERSION}" \
&& apk del build-dependencies \
&& apk del build-dependencies-after-compose-v1.28.x || true
LABEL \
org.opencontainers.image.authors="Tobias Maier <tobias.maier@baucloud.com>" \
org.opencontainers.image.description="This docker image installs docker-compose on top of the docker image." \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://github.com/tmaier/docker-compose" \
org.opencontainers.image.title="Docker Compose on docker base image" \
org.opencontainers.image.vendor="BauCloud GmbH" \
org.opencontainers.image.version="${DOCKER_VERSION} with docker-compose ${COMPOSE_VERSION}"