Skip to content

Commit 11dca51

Browse files
committed
chore: fix multi-arch build
1 parent 9585a5b commit 11dca51

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
# Multi-stage Dockerfile for dns-sync
2-
3-
# Build stage
41
FROM golang:1.23-alpine AS builder
52

3+
ARG TARGETARCH
4+
65
# Install necessary packages
76
RUN apk add --no-cache git ca-certificates tzdata
87

@@ -28,6 +27,8 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
2827
# Final stage
2928
FROM scratch AS production
3029

30+
ARG TARGETARCH
31+
3132
# Import from builder
3233
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
3334
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo

0 commit comments

Comments
 (0)