From 68de0707140b4ad301fa3a695a4a05613c6b7066 Mon Sep 17 00:00:00 2001 From: Joshua Rich Date: Sun, 26 May 2024 14:17:32 +1000 Subject: [PATCH] build(container): :sparkles: start using mage for container build --- Dockerfile | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index b190f5bdb..0522479d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,30 +2,24 @@ # # This software is released under the MIT License. # https://opensource.org/licenses/MIT + +# Default to an amd64 build +ARG BUILD_ARCH=amd64 + FROM docker.io/golang:1.22 AS builder WORKDIR /usr/src/go-hass-agent # copy the src to the workdir ADD . . -# https://developer.fyne.io/started/#prerequisites -ARG DEBIAN_FRONTEND=noninteractive -RUN apt-get update && apt-get -y install gcc pkg-config libgl1-mesa-dev xorg-dev +# install mage +RUN go install github.com/magefile/mage@latest # install build dependencies -RUN <