forked from containrrr/watchtower
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 742 Bytes
/
Dockerfile
File metadata and controls
23 lines (18 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM centurylink/ca-certs
MAINTAINER Luckych <[email protected]>
LABEL "com.centurylinklabs.watchtower"="true"
WORKDIR /root
CMD ["/bin/s6-svscan", "/etc/s6"]
ENV WATCHTOWER_PATH github.com/randomguy1991/watchtower
ENV WATCHTOWER_REPO https://github.com/randomguy1991/watchtower.git
ENV WATCHTOWER_BRANCH master
ENV GOPATH /usr/local
RUN apk add --no-cache --virtual build-dependencies build-base go git && \
git clone -b ${WATCHTOWER_BRANCH} ${WATCHTOWER_REPO} /usr/local/src/${WATCHTOWER_PATH} && \
cd /usr/local/src/${WATCHTOWER_PATH} && \
go get ./... && \
go install ${WATCHTOWER_PATH}... && \
cp /usr/local/bin/watchtower /usr/bin/ && \
apk del build-dependencies && \
rm -rf /usr/local/*
ADD rootfs /