From e64c0c78a69e6ac67cff1bf2b91eb193df5103b9 Mon Sep 17 00:00:00 2001 From: Alpha Date: Thu, 31 Jan 2019 16:37:53 +0100 Subject: [PATCH] Docker Changes --- DOCKERFILE | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/DOCKERFILE b/DOCKERFILE index a58f996..14f87b0 100644 --- a/DOCKERFILE +++ b/DOCKERFILE @@ -1,7 +1,6 @@ FROM golang:latest -RUN mkdir /app -ADD . /app/ +RUN mkdir -p /app WORKDIR /app -RUN go get -u -RUN go build -o main . -CMD ["/app/main"] \ No newline at end of file +ADD . /app +RUN go build ./main.go +CMD ["./main"] \ No newline at end of file