-
Notifications
You must be signed in to change notification settings - Fork 76
/
Dockerfile
31 lines (21 loc) · 951 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
FROM alpine:latest
LABEL maintainer="Development Team <dev@facette.io>"
COPY . /root/go/src/facette.io/facette
RUN apk --no-cache add --virtual .build-deps git go make musl-dev nodejs rrdtool-dev yarn && \
GOBIN=/usr/local/bin go get github.com/jteeuwen/go-bindata/... && \
make TAGS="skip_docs" -C /root/go/src/facette.io/facette build install && \
install -D /root/go/src/facette.io/facette/docs/examples/facette.yaml /etc/facette/facette.yaml && \
sed -i -r \
-e "s|listen: localhost:12003|listen: :12003|" \
-e "s|path: var/data.db|path: /var/lib/facette/data.db|" \
-e "s|path: var/cache|path: /var/cache/facette|" \
/etc/facette/facette.yaml && \
rm -rf /root/go && \
apk del .build-deps
RUN apk --no-cache add ca-certificates rrdtool
RUN adduser -h /var/lib/facette -S -D -u 1234 facette
USER 1234
EXPOSE 12003
VOLUME /var/lib/facette
ENTRYPOINT ["facette"]
# vim: ts=4 sw=4 et