Don't use GOPATH to build
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tyler 2020-07-09 21:07:46 -04:00
parent 2415a47d96
commit b867a586e5
1 changed files with 3 additions and 3 deletions

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