21 lines
No EOL
379 B
Docker
21 lines
No EOL
379 B
Docker
FROM golang:latest
|
|
|
|
ENV ts3_ip=0.0.0.0
|
|
ENV ts3_name=serveradmin
|
|
ENV ts3_pw=f3gWdOU3
|
|
ENV ts3_port=9987
|
|
ENV ts3_query=10011
|
|
ENV web_port=8080
|
|
|
|
|
|
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
|
|
EXPOSE 8080
|
|
CMD ["./tsviewer"] |