tsviewer/Dockerfile

13 lines
240 B
Docker
Raw Normal View History

2019-01-31 16:26:30 +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
RUN mkdir /go
RUN export GOPATH=/app/go
COPY main.go .
2019-01-31 18:39:04 +00:00
COPY config.json .
2019-01-31 18:36:27 +00:00
RUN go get
WORKDIR $GOPATH/src/git.cliffbreak.de/Cliffbreak/tsviewer
RUN go build
EXPOSE 8080
CMD ["./tsviewer"]