forked from QubitProducts/bamboo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 902 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 golang:1.6.2
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -yqq && \
apt-get install -yqq software-properties-common && \
apt-get install -yqq haproxy git mercurial supervisor && \
rm -rf /var/lib/apt/lists/*
ADD . /go/src/github.com/QubitProducts/bamboo
ADD builder/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD builder/run.sh /run.sh
WORKDIR /go/src/github.com/QubitProducts/bamboo
RUN go get github.com/tools/godep && \
go get -t github.com/smartystreets/goconvey && \
go build && \
ln -s /go/src/github.com/QubitProducts/bamboo /var/bamboo && \
mkdir -p /run/haproxy && \
mkdir -p /var/log/supervisor
VOLUME /var/log/supervisor
RUN apt-get clean && \
rm -rf /tmp/* /var/tmp/* && \
rm -rf /var/lib/apt/lists/* && \
rm -f /etc/dpkg/dpkg.cfg.d/02apt-speedup && \
rm -f /etc/ssh/ssh_host_*
EXPOSE 80 8000
CMD /run.sh