From b867a586e52392b8ec541ab5e06d5142fe66a924 Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 9 Jul 2020 21:07:46 -0400 Subject: [PATCH] Don't use GOPATH to build --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c6147b..215d7b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ FROM golang:alpine AS builder -ADD . /go +ADD . /go/src -RUN go build -o sleeper +RUN cd /go/src; go build -o sleeper FROM alpine -COPY --from=builder sleeper /sleeper +COPY --from=builder /go/src/sleeper /sleeper CMD ["/sleeper"] \ No newline at end of file