-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
33 lines (28 loc) · 933 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM alpine:3.4
MAINTAINER Diego Hernandes <[email protected]>
ENV RANCHER_URL=http://127.0.0.1:8080/v1/projects/1a5 \
RANCHER_ACCESS_KEY=none \
RANCHER_SECRET_KEY=none \
RANCHER_STACK_ID=project \
RANCHER_STACK_NAME=project \
RANCHER_SERVICE_NAME=service
ADD upgrade.sh /root/upgrade.sh
RUN chmod +x /root/upgrade.sh && \
apk -U upgrade && \
apk add --no-cache --update \
curl \
unzip \
tar \
gzip \
ca-certificates && \
update-ca-certificates --fresh && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
curl -L \
https://releases.rancher.com/compose/v0.12.5/rancher-compose-linux-amd64-v0.12.5.tar.gz \
-o rancher-compose.tar.gz && \
tar zxvf rancher-compose.tar.gz --strip-components 2 && \
rm -rf rancher-compose.tar.gz && \
mv rancher-compose /usr/bin/rancher-compose && \
chmod +x /usr/bin/rancher-compose
CMD ["/root/upgrade.sh"]