mirror of
https://github.com/tmaier/docker-compose
synced 2024-11-23 00:12:00 +01:00
f7db8c7577
- 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
8 lines
201 B
Docker
8 lines
201 B
Docker
ARG COMPOSE_VERSION=1.10.*
|
|
|
|
FROM docker:1.13
|
|
MAINTAINER Tobias Maier <tobias.maier@baucloud.com>
|
|
|
|
RUN apk add --no-cache py-pip
|
|
RUN pip install "docker-compose${COMPOSE_VERSION:+==}${COMPOSE_VERSION}"
|