Don't use GOPATH to build
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler 2020-07-09 21:07:46 -04:00
parent 2415a47d96
commit b867a586e5

View File

@ -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"]