Docker
This commit is contained in:
parent
e152962fe7
commit
50b56687eb
1 changed files with 4 additions and 4 deletions
|
@ -2,12 +2,12 @@
|
||||||
FROM golang:latest
|
FROM golang:latest
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN mkdir /go
|
RUN mkdir /app/go
|
||||||
RUN export GOPATH=/app/go
|
RUN export GOPATH=/app/go
|
||||||
COPY main.go .
|
COPY main.go .
|
||||||
COPY config.json .
|
RUN go get; exit 0
|
||||||
RUN go get
|
|
||||||
WORKDIR $GOPATH/src/git.cliffbreak.de/Cliffbreak/tsviewer
|
WORKDIR $GOPATH/src/git.cliffbreak.de/Cliffbreak/tsviewer
|
||||||
|
COPY config.json .
|
||||||
RUN go build
|
RUN go build
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["./tsviewer"]
|
CMD ["./tsviewer"]
|
Loading…
Reference in a new issue