-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
18 lines (17 loc) · 713 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM alpine:3.7
COPY relay.toml /etc/relay.toml.tpl
COPY run.sh envtpl /bin/
RUN apk --update add pkgconf ncurses-terminfo ncurses-terminfo-base ncurses-libs readline bash && \
apk --update --virtual build-deps add go>1.6 curl gcc git musl-dev make python && \
export GOPATH=/go && \
go get -v github.com/influxdata/influxdb-relay && \
cd $GOPATH/src/github.com/influxdata/influxdb-relay && \
python ./build.py && \
chmod +x ./build/influx* && \
ls -l ./build/* && \
mv ./build/influx* /bin/ && \
apk del build-deps && cd / && rm -rf $GOPATH/ /var/cache/apk/*
EXPOSE 9096
ENTRYPOINT ["/bin/sh"]
CMD ["/bin/run.sh"]
LABEL maintainer="7901922+ahibbitt@users.noreply.github.com"