-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
44 lines (29 loc) · 979 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
41
42
43
44
FROM yodlr/nodejs
MAINTAINER Jared De La Cruz <[email protected]>
RUN apt-get -qq update
RUN apt-get install -yqq wget ca-certificates build-essential
RUN apt-get install -yqq git mercurial
# Install go
ENV PATH $PATH:/usr/local/go/bin
ENV GOPATH /usr/local/go/
RUN wget --no-verbose https://storage.googleapis.com/golang/go1.3.3.src.tar.gz
RUN tar -v -C /usr/local -xzf go1.3.3.src.tar.gz
RUN cd /usr/local/go/src && ./all.bash --no-clean 2>&1
# Install Fleet
RUN cd /root && \
git clone https://github.com/coreos/fleet.git && \
cd fleet && \
./build
RUN ln -s /root/fleet/bin/fleetctl /usr/bin/fleetctl
# Install app
WORKDIR /src
ADD package.json /src/package.json
RUN npm install
ADD bower.json /src/bower.json
RUN bower install --allow-root
ADD gulpfile.js /src/gulpfile.js
RUN gulp
EXPOSE 3000
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD . /src/
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]