forked from convox/rack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 765 Bytes
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 765 Bytes
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 golang:1.7.5-alpine3.5
RUN apk update && apk add \
build-base \
curl \
git \
haproxy \
openssh \
openssl \
python \
tar
RUN curl -fsSLO https://get.docker.com/builds/Linux/x86_64/docker-1.13.0.tgz \
&& tar --strip-components=1 -xvzf docker-1.13.0.tgz -C /usr/local/bin
# need a real pid 1 for signal handling, zombie reaping, etc
ADD http://convox-binaries.s3.amazonaws.com/tini-static /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
RUN go get github.com/convox/rerun
COPY dist/haproxy.cfg /etc/haproxy/haproxy.cfg
ENV PORT 3000
WORKDIR /go/src/github.com/convox/rack
COPY . /go/src/github.com/convox/rack
RUN go install ./api
RUN go install ./api/cmd/build
RUN go install ./api/cmd/monitor
CMD ["api/bin/web"]