mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 05:15:42 -04:00
build: add arg $ARCH to Dockerfile and prep to combine architectures
This commit is contained in:
11
Dockerfile
11
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 .
|
# 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
|
# Set Args
|
||||||
|
|||||||
Reference in New Issue
Block a user