1
0
mirror of https://github.com/tmaier/docker-compose synced 2024-11-26 05:47:50 +01:00
github.com-tmaier-docker-co.../18/Dockerfile
Seb Patane f7db8c7577 Pin docker-compose versions to the time of release
- Otherwise the docker-compose version is the latest available at time of build, which may not be compatible or expected
  - The latest `COMPOSE_VERSION` can be taken by setting the argument blank (or leaving it as is in the case of `latest`)
  - pip requires the `.*` to denote that we want the latest patch level, eg. just putting `docker-compose==1.11` installs `1.11.0` instead of `1.11.2`
- The extra `${COMPOSE_VERSION:+==}` is because pip errors out with `docker-compose==`

Fixes #4
2018-04-19 23:42:32 +10:00

8 lines
199 B
Docker

ARG COMPOSE_VERSION=1.19.*
FROM docker:18
MAINTAINER Tobias Maier <tobias.maier@baucloud.com>
RUN apk add --no-cache py-pip
RUN pip install "docker-compose${COMPOSE_VERSION:+==}${COMPOSE_VERSION}"