Upgrade Go, Kaniko and Alpine
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
FROM golang:1.14.3 as builder
|
||||
FROM golang:1.14.4-alpine3.12 as builder
|
||||
WORKDIR /go/src/gitea.develooper.com/ask/drone-test
|
||||
ADD . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o demo
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -o demo
|
||||
|
||||
FROM alpine:3.11 as production
|
||||
FROM alpine:3.12 as production
|
||||
COPY --from=builder /go/src/gitea.develooper.com/ask/drone-test/demo .
|
||||
CMD ["./demo"]
|
||||
|
Reference in New Issue
Block a user