go-tsviewer/Dockerfile

20 lines
489 B
Docker
Raw Normal View History

2019-01-31 16:26:30 +00:00
2019-01-31 19:57:07 +00:00
ARG ts3_ip=0.0.0.0
ARG ts3_name=serveradmin
ARG ts3_pw=f3gWdOU3
ARG ts3_port=9987
2019-01-31 20:05:49 +00:00
ARG ts3_query=10011
ARG web_port=8080
2019-01-31 19:57:07 +00:00
2019-01-31 17:04:45 +00:00
FROM golang:latest
2019-01-31 18:36:27 +00:00
RUN mkdir /app
WORKDIR /app
2019-01-31 18:56:44 +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:05:49 +00:00
RUN go build -ts3_ip=$ts3_ip -ts3_name=$ts3_name -ts3_pw=$ts3_pw -ts3_port=$ts3_port -ts3_query=$ts3_query -web_port=$web_port
2019-01-31 18:36:27 +00:00
EXPOSE 8080
2019-01-31 18:56:44 +00:00
CMD ["./tsviewer"]