Don't use GOPATH to build
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
2415a47d96
commit
b867a586e5
|
@ -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"]
|
Loading…
Reference in New Issue