This commit is contained in:
parent
d84614ab26
commit
302cc8d7d6
@ -1,6 +1,6 @@
|
||||
|
||||
FROM golang:alpine AS builder
|
||||
ARG BUILDPLATFORM=${BUILDPLATFORM:-linux/amd64}
|
||||
ARG BUILDARCH
|
||||
ARG version=not-set
|
||||
ARG SHORTSHA=not-set
|
||||
WORKDIR /app
|
||||
@ -9,7 +9,7 @@ COPY . .
|
||||
RUN go build -o bin/ddns \
|
||||
-ldflags "-X main.Shortsha=${SHORTSHA} \
|
||||
-X main.Version=${version} \
|
||||
-X main.Aarch=${BUILDPLATFORM}" ./cmd
|
||||
-X main.Aarch=${BUILDARCH}" ./cmd
|
||||
|
||||
FROM alpine AS runner
|
||||
COPY --from=builder /app/bin/ddns /usr/bin/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user