Dockerfile updating
This commit is contained in:
parent
cdc0d2fa5f
commit
c76dc00fef
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user