From 5189cb63f6c7e2184ddc995dd1b3effda19f94d2 Mon Sep 17 00:00:00 2001 From: Alpha Date: Thu, 31 Jan 2019 19:36:27 +0100 Subject: [PATCH] Dockerfile --- Dockerfile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96502db..b2348ef 100644 --- a/Dockerfile +++ b/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"] \ No newline at end of file +RUN mkdir /app +WORKDIR /app +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"] \ No newline at end of file