Upgrade Go, Kaniko and Alpine

This commit is contained in:
2020-06-25 21:54:42 -07:00
parent a4cb903627
commit 7cc5c91dce
2 changed files with 5 additions and 5 deletions

View File

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