Dockerfile updating

This commit is contained in:
Laurent Le Houerou 2020-10-26 14:50:58 +04:00
parent cdc0d2fa5f
commit c76dc00fef

View File

@ -1,10 +1,10 @@
FROM golang:1.13.5-alpine3.10 as builder FROM golang:1.15.3-alpine3.12 as builder
RUN apk add --update --no-cache ca-certificates git tzdata RUN apk add --update --no-cache ca-certificates git tzdata
WORKDIR /tmp/dnsupdater WORKDIR /tmp/dnsupdater
COPY go.mod go.sum ./ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY ./ ./ COPY ./ ./
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o dnsupdater . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o dnsupdater ./cmd/dnsupdater
FROM busybox:glibc FROM busybox:glibc
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt