Don't use GOPATH to build
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2415a47d96
commit
b867a586e5
@ -1,11 +1,11 @@
|
|||||||
FROM golang:alpine AS builder
|
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
|
FROM alpine
|
||||||
|
|
||||||
COPY --from=builder sleeper /sleeper
|
COPY --from=builder /go/src/sleeper /sleeper
|
||||||
|
|
||||||
CMD ["/sleeper"]
|
CMD ["/sleeper"]
|
Loading…
x
Reference in New Issue
Block a user