From 3ef13657cdfa2e9ac437d1ada8caa911a508f4be Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Mon, 24 Feb 2025 15:12:12 -0700 Subject: [PATCH] build: add arg $ARCH to Dockerfile and prep to combine architectures --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9732c5dc..d9e1a756 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,16 @@ # arm64 docker buildx build --no-cache --pull --build-arg VERSION=1.0.0 --build-arg BUILDDATE=20250218 -t tvapp2:latest -t tvapp2:1.0.0 --platform=linux/arm64 --output type=docker --output type=docker . # # -FROM ghcr.io/aetherinox/alpine-base:3.20-amd64 +# # +# FROM +# any args defined before FROM cannot be called after FROM and the ARE is classified outside the build process. +# You will have to re-define the arg after FROM to utilize it anywhere else in the build process. +# +# @ref https://docs.docker.com/reference/dockerfile/#understand-how-arg-and-from-interact +# # + +ARG ARCH=and64 +FROM ghcr.io/aetherinox/alpine-base:3.20-${ARCH} # # # Set Args