-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change behavior of Docker tags (#40)
- Loading branch information
1 parent
fd1192d
commit dd2c509
Showing
6 changed files
with
48 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
FROM golang:1.19.3-alpine AS builder | ||
FROM --platform=$BUILDPLATFORM golang:1.19.3-alpine AS builder | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
|
||
ENV GOOS=$TARGETOS | ||
ENV GOARCH=$TARGETARCH | ||
|
||
RUN apk add --no-cache make git bash | ||
|
||
|
@@ -9,9 +15,9 @@ RUN go mod download | |
RUN go mod verify | ||
|
||
COPY . /build/ | ||
RUN make | ||
RUN make build-binary | ||
|
||
FROM busybox | ||
FROM --platform=$TARGETPLATFORM busybox | ||
LABEL maintainer="Robert Jacob <[email protected]>" | ||
|
||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters