22 lines
No EOL
396 B
Docker
22 lines
No EOL
396 B
Docker
FROM golang:latest
|
|
|
|
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
|
|
|
|
|
|
RUN mkdir /app
|
|
WORKDIR /app
|
|
RUN mkdir /app/go
|
|
RUN export GOPATH=/app/go
|
|
COPY main.go .
|
|
RUN go get; exit 0
|
|
WORKDIR $GOPATH/src/git.cliffbreak.de/Cliffbreak/tsviewer
|
|
COPY config.json .
|
|
RUN go build
|
|
|
|
CMD ["./tsviewer"] |