forked from jwhitcraft/docker-rancher-compose
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
20 lines (16 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM debian:8.1
MAINTAINER Vincenzo FERME <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
ENV RANCHER_COMPOSE_VERSION v0.12.5
RUN apt-get update -q \
&& apt-get install -y -q --no-install-recommends ca-certificates tar wget \
&& wget -O /tmp/rancher-compose-linux-amd64-${RANCHER_COMPOSE_VERSION}.tar.gz "https://github.com/rancher/rancher-compose/releases/download/${RANCHER_COMPOSE_VERSION}/rancher-compose-linux-amd64-${RANCHER_COMPOSE_VERSION}.tar.gz" \
&& tar -xf /tmp/rancher-compose-linux-amd64-${RANCHER_COMPOSE_VERSION}.tar.gz -C /tmp \
&& mv /tmp/rancher-compose-${RANCHER_COMPOSE_VERSION}/rancher-compose /usr/local/bin/rancher-compose \
&& rm -R /tmp/rancher-compose-linux-amd64-${RANCHER_COMPOSE_VERSION}.tar.gz /tmp/rancher-compose-${RANCHER_COMPOSE_VERSION}\
&& chmod +x /usr/local/bin/rancher-compose \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false
# This container is a chrooted rancher-compose
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/rancher-compose"]
CMD ["--version"]