From 81aebfa571fe7ecaff9ec1639967fab2f001252c Mon Sep 17 00:00:00 2001 From: Tom McKeesick Date: Fri, 5 Dec 2025 11:07:57 +1100 Subject: [PATCH] use alpine image for build tasks is much smaller than the debian one, and faster at copying the cowfiles --- build/Dockerfile | 11 +++++------ build/scripts/build_bin.sh | 12 ++++++------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index a838d9c2..adc57cc9 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,13 +1,12 @@ -FROM golang:1.24 +FROM golang:1.24-alpine WORKDIR /usr/local/src -ENV DEBIAN_FRONTEND=noninteractive -RUN apt update \ - && apt upgrade -y \ - && apt install -y --no-install-recommends jq tree +RUN apk update \ + && apk upgrade \ + && apk add --no-cache jq tree bash dpkg -RUN useradd u -m +RUN adduser -D u ADD go.* /usr/local/src/ ADD src/ /usr/local/src/src/ diff --git a/build/scripts/build_bin.sh b/build/scripts/build_bin.sh index b667106e..21b3c18e 100755 --- a/build/scripts/build_bin.sh +++ b/build/scripts/build_bin.sh @@ -65,14 +65,14 @@ function tarball() { rm -rf pokesay.1 pokesay-* usr/ } -build darwin amd64 -build darwin arm64 build linux amd64 -build windows amd64 .exe -build android arm64 + +build darwin amd64 & +build darwin arm64 & +build windows amd64 .exe & +build android arm64 & +tarball linux amd64 & # just create a tarball for the linux/amd64 (used for AUR package) wait -# just create a tarball for the linux/amd64 (used for AUR package) -tarball linux amd64 rm -f pokesay.1