From 64490fcba50ce9042cff97cef42dad82d3b72938 Mon Sep 17 00:00:00 2001 From: Esteban Beltran Date: Fri, 3 Jan 2025 11:54:56 +0100 Subject: [PATCH] fix docker build --- Dockerfile | 2 +- Magefile.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 736a80e..7861c94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23-alpine as builder +FROM golang:1.23-alpine AS builder RUN apk add --no-cache git ca-certificates curl && \ update-ca-certificates diff --git a/Magefile.go b/Magefile.go index 7da702d..f4926fb 100644 --- a/Magefile.go +++ b/Magefile.go @@ -86,6 +86,7 @@ func Deploy() error { return err } err = sh.Run("docker", "buildx", "build", + "--network=host", // docker dns keep messing things up "--platform", "linux/amd64,linux/arm64", // Build for both AMD64 and ARM64 "-t", "academo/grafana-ntfy:"+version, "-t", "academo/grafana-ntfy:latest",