Files
realDynDNS/Dockerfile
T
renovate-bot b89d982f44
CI / test (pull_request) Successful in 29s
renovate/stability-days Updates have not met minimum release age requirement
chore(deps): update gcr.io/distroless/static-debian12 docker digest to 22fd79f
2026-07-09 04:10:16 +00:00

15 lines
460 B
Docker

FROM docker.io/library/golang:1.25-alpine@sha256:04d017a27c481185c169884328a5761d052910fdced8c3b8edd686474efdf59b as build
ARG GOARCH=amd64
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${GOARCH} \
go build -trimpath -ldflags="-s -w" -o main .
FROM gcr.io/distroless/static-debian12@sha256:22fd79fd75eab2372585b44517f8a094349938919dc613aafc37e4bdc9967c82
COPY --from=build /app/main /
CMD ["/main"]