forked from facesea/banshee
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 844 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 844 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
FROM golang:latest
RUN apt-get update && \
apt-get install xz-utils && \
curl -SLO "https://nodejs.org/dist/v5.12.0/node-v5.12.0-linux-x64.tar.xz" && \
tar -xJf "node-v5.12.0-linux-x64.tar.xz" && \
mv node-v5.12.0-linux-x64 /tmp/nodejs && \
export PATH=$PATH:/tmp/nodejs/bin && \
npm install -g gulp && \
git clone https://github.com/eleme/banshee.git $GOPATH/src/github.com/eleme/banshee && \
cd $GOPATH/src/github.com/eleme/banshee && \
make static && \
make build && \
mkdir -p /banshee/static && \
cp banshee /banshee &&\
cp -r static/dist /banshee/static && \
cd alerter/exampleCommand && \
go build &&\
cp exampleCommand /banshee
VOLUME ["/banshee/data"]
EXPOSE 2015
EXPOSE 2016
COPY ./run.sh /run.sh
COPY config.yaml /banshee/config.yaml
ENTRYPOINT ["/run.sh"]