mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 16:32:33 +01:00
Add multi-arch support
This commit is contained in:
parent
be1b046e1b
commit
af806f4218
|
@ -1,6 +1,6 @@
|
||||||
ARG PHP_VERSION=7.4
|
ARG PHP_VERSION=7.4
|
||||||
ARG WP_VERSION=5.8.0
|
ARG WP_VERSION=5.8.0
|
||||||
FROM wordpress:${WP_VERSION}-php${PHP_VERSION}-fpm-alpine AS wordpress-builder
|
FROM --platform=${TARGETPLATFORM} wordpress:${WP_VERSION}-php${PHP_VERSION}-fpm-alpine AS wordpress-builder
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ RUN mkdir -p usr/local/bin \
|
||||||
|
|
||||||
|
|
||||||
################################################# APP ##################################################################
|
################################################# APP ##################################################################
|
||||||
FROM nlss/php-nginx:${PHP_VERSION}
|
FROM --platform=${TARGETPLATFORM} nlss/php-nginx:${PHP_VERSION}
|
||||||
ARG WP_VERSION
|
ARG WP_VERSION
|
||||||
ENV APK_DEPS "zlib-dev libzip-dev libpng-dev icu-dev imagemagick-dev patch"
|
ENV APK_DEPS "zlib-dev libzip-dev libpng-dev icu-dev imagemagick-dev patch"
|
||||||
ENV APK_BUILD_DEPS "curl-dev autoconf alpine-sdk"
|
ENV APK_BUILD_DEPS "curl-dev autoconf alpine-sdk"
|
||||||
|
|
|
@ -7,5 +7,5 @@ if [ -z "${WP_VERSION}" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker build --build-arg WP_VERSION=${WP_VERSION} --tag "nlss/wordpress:${WP_VERSION}" --tag "nlss/wordpress:latest" .
|
docker buildx create --use --name build --node build --driver-opt network=host
|
||||||
docker push --all-tags nlss/wordpress
|
docker buildx build --pull --push --platform "linux/amd64,linux/armhf,linux/aarch64" --build-arg "WP_VERSION=${WP_VERSION}" --tag "nlss/wordpress:${WP_VERSION}" --tag "nlss/wordpress:latest" .
|
Loading…
Reference in New Issue
Block a user