From 50b56687ebf1f070b4969e6e16412fde13baf388 Mon Sep 17 00:00:00 2001 From: Alpha Date: Thu, 31 Jan 2019 19:56:44 +0100 Subject: [PATCH] Docker --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 862c6e3..2bd3c37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,12 @@ FROM golang:latest RUN mkdir /app WORKDIR /app -RUN mkdir /go +RUN mkdir /app/go RUN export GOPATH=/app/go COPY main.go . -COPY config.json . -RUN go get +RUN go get; exit 0 WORKDIR $GOPATH/src/git.cliffbreak.de/Cliffbreak/tsviewer +COPY config.json . RUN go build EXPOSE 8080 -CMD ["./tsviewer"] \ No newline at end of file +CMD ["./tsviewer"] \ No newline at end of file