build(Dockerfiles): Set the base registry via an ARG (#33712)
This commit is contained in:
		@@ -6,6 +6,7 @@
 | 
			
		||||
# See: https://docs.docker.com/build/building/multi-platform/
 | 
			
		||||
ARG TARGETPLATFORM=${TARGETPLATFORM}
 | 
			
		||||
ARG BUILDPLATFORM=${BUILDPLATFORM}
 | 
			
		||||
ARG BASE_REGISTRY="docker.io"
 | 
			
		||||
 | 
			
		||||
# Node version to use in base image, change with [--build-arg NODE_MAJOR_VERSION="20"]
 | 
			
		||||
# renovate: datasource=node-version depName=node
 | 
			
		||||
@@ -13,7 +14,7 @@ ARG NODE_MAJOR_VERSION="22"
 | 
			
		||||
# Debian image to use for base image, change with [--build-arg DEBIAN_VERSION="bookworm"]
 | 
			
		||||
ARG DEBIAN_VERSION="bookworm"
 | 
			
		||||
# Node image to use for base image based on combined variables (ex: 20-bookworm-slim)
 | 
			
		||||
FROM docker.io/node:${NODE_MAJOR_VERSION}-${DEBIAN_VERSION}-slim AS streaming
 | 
			
		||||
FROM ${BASE_REGISTRY}/node:${NODE_MAJOR_VERSION}-${DEBIAN_VERSION}-slim AS streaming
 | 
			
		||||
 | 
			
		||||
# Resulting version string is vX.X.X-MASTODON_VERSION_PRERELEASE+MASTODON_VERSION_METADATA
 | 
			
		||||
# Example: v4.3.0-nightly.2023.11.09+pr-123456
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user