Merge branch 'master' of https://git.cliffbreak.de/Cliffbreak/tsviewer
fixing web port
This commit is contained in:
commit
6343577301
1 changed files with 10 additions and 9 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,11 +1,12 @@
|
|||
|
||||
FROM golang:latest
|
||||
RUN mkdir /app
|
||||
RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
RUN go get -u
|
||||
RUN go build -o main .
|
||||
CMD ["/app/main"]
|
||||
ADD . /app
|
||||
RUN go build ./main.go
|
||||
CMD ["./main"]
|
||||
RUN mkdir /go
|
||||
RUN export GOPATH=/app/go
|
||||
COPY main.go .
|
||||
RUN go get
|
||||
WORKDIR $GOPATH/src/git.cliffbreak.de/Cliffbreak/tsviewer
|
||||
RUN go build
|
||||
EXPOSE 8080
|
||||
CMD ["./tsviewer"]
|
Loading…
Reference in a new issue