Skip to content

Commit

Permalink
add arm64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
seiferma committed Dec 24, 2023
1 parent 951db89 commit a52bff0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
FROM golang:alpine AS builder
FROM --platform=$BUILDPLATFORM golang:alpine AS builder

ARG TARGETARCH
ARG GOOS=linux
ARG CGOENABLED=0

RUN apk add --no-cache make ca-certificates git
WORKDIR /go/src/app
COPY . .
RUN make RELEASE=1 build test
RUN export GOARCH=$TARGETARCH && \
make RELEASE=1 build test

FROM scratch
COPY --from=builder /go/src/app/build/mediathek2rss /opt/mediathek2rss
Expand Down
1 change: 1 addition & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ group "default" {
}

target "default" {
platforms = ["linux/amd64", "linux/arm64"]
tags = ["quay.io/seiferma/mediathek2rss:${VERSION}", "quay.io/seiferma/mediathek2rss:latest"]
}

0 comments on commit a52bff0

Please sign in to comment.