2019-01-31 20:43:17 +00:00
|
|
|
FROM golang:latest
|
|
|
|
|
2019-02-04 00:01:58 +00:00
|
|
|
ENV TS3_IP=127.0.0.1
|
|
|
|
ENV TS3_NAME=serveradmin
|
|
|
|
ENV TS3_PW=<changeMe>
|
|
|
|
ENV TS3_PORT=9987
|
|
|
|
ENV TS3_QUERY=10011
|
|
|
|
ENV WEB_PORT=8080
|
|
|
|
ENV BLACKLIST_USER=USER
|
2019-01-31 16:26:30 +00:00
|
|
|
|
2019-01-31 19:57:07 +00:00
|
|
|
|
2019-01-31 18:36:27 +00:00
|
|
|
RUN mkdir /app
|
|
|
|
WORKDIR /app
|
2019-01-31 20:43:17 +00:00
|
|
|
RUN mkdir /app/go
|
2019-01-31 18:36:27 +00:00
|
|
|
RUN export GOPATH=/app/go
|
|
|
|
COPY main.go .
|
2019-01-31 18:56:44 +00:00
|
|
|
RUN go get; exit 0
|
2019-01-31 18:36:27 +00:00
|
|
|
WORKDIR $GOPATH/src/git.cliffbreak.de/Cliffbreak/tsviewer
|
2019-01-31 18:56:44 +00:00
|
|
|
COPY config.json .
|
2019-01-31 20:43:17 +00:00
|
|
|
RUN go build
|
2019-01-31 22:28:58 +00:00
|
|
|
|
2019-01-31 21:51:48 +00:00
|
|
|
CMD ["./tsviewer"]
|