Could work
This commit is contained in:
parent
a308206256
commit
d1b9551889
1 changed files with 11 additions and 10 deletions
21
Dockerfile
21
Dockerfile
|
@ -1,12 +1,13 @@
|
|||
|
||||
ARG ts3_ip=0.0.0.0
|
||||
ARG ts3_name=serveradmin
|
||||
ARG ts3_pw=f3gWdOU3
|
||||
ARG ts3_port=9987
|
||||
ARG ts3_query=10011
|
||||
ARG web_port=8080
|
||||
|
||||
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
|
||||
|
@ -15,6 +16,6 @@ COPY main.go .
|
|||
RUN go get; exit 0
|
||||
WORKDIR $GOPATH/src/git.cliffbreak.de/Cliffbreak/tsviewer
|
||||
COPY config.json .
|
||||
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
|
||||
RUN go build
|
||||
EXPOSE 8080
|
||||
CMD ["./tsviewer"]
|
||||
CMD ["./tsviewer", "-ts3_ip=$ts3_ip", "-ts3_name=$ts3_name", "-ts3_pw=$ts3_pw","-ts3_port=$ts3_port", "-ts3_query=$ts3_query", "-web_port=$web_port"]
|
Loading…
Reference in a new issue