chore: add arm64 Docker image (#890)
This commit is contained in:
@@ -13,7 +13,8 @@ RUN apt-get update && \
|
||||
# Create the pwuser
|
||||
adduser pwuser
|
||||
|
||||
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
|
||||
ARG PW_TARGET_ARCH
|
||||
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-${PW_TARGET_ARCH}
|
||||
|
||||
# === BAKE BROWSERS INTO IMAGE ===
|
||||
|
||||
|
||||
@@ -32,4 +32,6 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker build --platform "${PLATFORM}" -t "$3" -f "Dockerfile.$2" ../../
|
||||
PW_TARGET_ARCH=$(echo $1 | cut -c3-)
|
||||
|
||||
docker build --platform "${PLATFORM}" --build-arg "PW_TARGET_ARCH=${PW_TARGET_ARCH}" -t "$3" -f "Dockerfile.$2" ../../
|
||||
|
||||
@@ -117,4 +117,5 @@ publish_docker_manifest () {
|
||||
}
|
||||
|
||||
publish_docker_images_with_arch_suffix focal amd64
|
||||
publish_docker_manifest focal amd64
|
||||
publish_docker_images_with_arch_suffix focal arm64
|
||||
publish_docker_manifest focal amd64 arm64
|
||||
|
||||
Reference in New Issue
Block a user