forked from QubitProducts/bamboo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (26 loc) · 995 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
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
ENV GOPATH /opt/go
RUN apt-get install -yqq software-properties-common && \
add-apt-repository -y ppa:vbernat/haproxy-1.5 && \
apt-get update -yqq && \
apt-get install -yqq haproxy golang git mercurial supervisor && \
rm -rf /var/lib/apt/lists/*
ADD . /opt/go/src/github.com/QubitProducts/bamboo
ADD builder/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD builder/run.sh /run.sh
WORKDIR /opt/go/src/github.com/QubitProducts/bamboo
RUN go get github.com/tools/godep && \
go get -t github.com/smartystreets/goconvey && \
go build && \
ln -s /opt/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