forked from QubitProducts/bamboo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (29 loc) · 1.12 KB
/
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
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 mkdir -p /opt/go/bin \
&& apt-get update \
&& apt-get install -y curl \
&& curl https://github.com/tools/godep/releases/download/v32/godep_linux_amd64 > /opt/go/bin/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