-
Notifications
You must be signed in to change notification settings - Fork 67
/
Dockerfile
40 lines (28 loc) · 886 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
34
35
36
37
38
39
40
FROM buildpack-deps:jessie-scm
MAINTAINER Can Yucel "[email protected]"
RUN apt-get update && apt-get install -y --no-install-recommends \
g++ \
gcc \
libc6-dev \
make \
pkg-config \
bison \
&& rm -rf /var/lib/apt/lists/*
SHELL ["/bin/bash", "-c"]
ENV GO_VERSION 1.7
RUN curl -s -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | bash
RUN . /root/.gvm/scripts/gvm && \
gvm install go1.4 && \
gvm use go1.4 && \
gvm install go1.5 && \
gvm install go1.6 && \
gvm install go1.7
ENV WATCHER_VERSION 0.2.4
ADD https://github.com/canthefason/go-watcher/releases/download/v${WATCHER_VERSION}/watcher-${WATCHER_VERSION}-linux-amd64 /root/.gvm/bin/watcher
RUN chmod +x /root/.gvm/bin/watcher
ENV GOPATH /go
WORKDIR /go/src
VOLUME /go/src
ADD entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["watcher"]