Skip to content

Commit

Permalink
Merge pull request #40 from alex-voigt/master
Browse files Browse the repository at this point in the history
chore: add ARM architecture
  • Loading branch information
alex-voigt authored Jun 28, 2024
2 parents 63c8be6 + 4816ea1 commit 50cfb82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:alpine AS builder
RUN apk update && apk add --no-cache ca-certificates git && update-ca-certificates
COPY . /app
RUN cd /app && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app .
RUN cd /app && CGO_ENABLED=0 GOOS=linux go build -o app .

FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ test:
go test -vet=all ./...

docker:
docker buildx build --tag aoepeople/vistecture-dashboard:latest --platform linux/amd64 .
docker buildx build --tag aoepeople/vistecture-dashboard:latest --platform linux/amd64,linux/arm64 .

dockerpublish:
docker buildx build \
--push \
--tag aoepeople/vistecture-dashboard:latest \
--tag aoepeople/vistecture-dashboard:$(VERSION) \
--platform linux/amd64 .
--platform linux/amd64,linux/arm64 .

0 comments on commit 50cfb82

Please sign in to comment.