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