diff --git a/.github/workflows/ci-7.4.yml b/.github/workflows/ci-7.4.yml index a7c5a0b..aae0ebe 100644 --- a/.github/workflows/ci-7.4.yml +++ b/.github/workflows/ci-7.4.yml @@ -19,6 +19,7 @@ jobs: - linux/arm/v7 - linux/arm/v8 - linux/arm64 + - windows/amd64 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/ci-8.1.yml b/.github/workflows/ci-8.1.yml index 705e83e..ee9a63c 100644 --- a/.github/workflows/ci-8.1.yml +++ b/.github/workflows/ci-8.1.yml @@ -19,6 +19,7 @@ jobs: - linux/arm/v7 - linux/arm/v8 - linux/arm64 + - windows/amd64 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/ci-8.2.yml b/.github/workflows/ci-8.2.yml index 3b76aec..9f1abe7 100644 --- a/.github/workflows/ci-8.2.yml +++ b/.github/workflows/ci-8.2.yml @@ -19,6 +19,7 @@ jobs: - linux/arm/v7 - linux/arm/v8 - linux/arm64 + - windows/amd64 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/ci-8.3.yml b/.github/workflows/ci-8.3.yml index 7c65eaf..2f8e571 100644 --- a/.github/workflows/ci-8.3.yml +++ b/.github/workflows/ci-8.3.yml @@ -19,6 +19,7 @@ jobs: - linux/arm/v7 - linux/arm/v8 - linux/arm64 + - windows/amd64 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/ci-latest.yml b/.github/workflows/ci-latest.yml index 5f40e4a..7be0cbe 100644 --- a/.github/workflows/ci-latest.yml +++ b/.github/workflows/ci-latest.yml @@ -19,6 +19,7 @@ jobs: - linux/arm/v7 - linux/arm/v8 - linux/arm64 + - windows/amd64 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.make/.env.example b/.make/.env.example index 11c2632..3d2da43 100644 --- a/.make/.env.example +++ b/.make/.env.example @@ -5,4 +5,4 @@ DOCKER_NAMESPACE=asapdotid # Docker image name DOCKER_IMAGE_NAME=php-nginx # Docker image multiple platform -DOCKER_IMAGE_PLATFORM='linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8' +DOCKER_IMAGE_PLATFORM='linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8,windows/amd64' diff --git a/src/php/7.4/Dockerfile b/src/php/7.4/Dockerfile index 23dbcf2..cfc59c8 100644 --- a/src/php/7.4/Dockerfile +++ b/src/php/7.4/Dockerfile @@ -7,25 +7,28 @@ ENV WEB_DOCUMENT_ROOT=${CONTAINER_WORKDIR_PATH} \ WEB_PHP_TIMEOUT=600 \ WEB_PHP_SOCKET="" ENV WEB_PHP_SOCKET=127.0.0.1:9000 -ENV SERVICE_NGINX_CLIENT_MAX_BODY_SIZE="80m" +ENV SERVICE_NGINX_CLIENT_MAX_BODY_SIZE="50m" ENV TIMEZONE=Asia/Jakarta ENV PHP_DATE_TIMEZONE=${TIMEZONE} ENV APPLICATION_ENV=production ENV SKIP_COMPOSER=false -COPY src/php/7.4/conf/ /opt/docker/ -COPY src/php/7.4/html/errors/ /var/www/errors/ -COPY src/php/7.4/www/ $CONTAINER_WORKDIR_PATH/ - # set timezone RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && echo $TIMEZONE > /etc/timezone +# Install nginx RUN set -x \ - # Install nginx && apk-install \ nginx \ - && docker-run-bootstrap \ - && docker-image-cleanup + && docker-run-bootstrap +# set php custom config +COPY src/php/7.4/conf/ /opt/docker/ +COPY src/php/7.4/html/errors/ /var/www/errors/ +COPY src/php/7.4/www/ $CONTAINER_WORKDIR_PATH/ + +# Expose Ports. EXPOSE 80 443 + +# set workdir WORKDIR $CONTAINER_WORKDIR_PATH diff --git a/src/php/8.1/Dockerfile b/src/php/8.1/Dockerfile index 43d22f2..fb417ff 100644 --- a/src/php/8.1/Dockerfile +++ b/src/php/8.1/Dockerfile @@ -7,25 +7,28 @@ ENV WEB_DOCUMENT_ROOT=${CONTAINER_WORKDIR_PATH} \ WEB_PHP_TIMEOUT=600 \ WEB_PHP_SOCKET="" ENV WEB_PHP_SOCKET=127.0.0.1:9000 -ENV SERVICE_NGINX_CLIENT_MAX_BODY_SIZE="80m" +ENV SERVICE_NGINX_CLIENT_MAX_BODY_SIZE="50m" ENV TIMEZONE=Asia/Jakarta ENV PHP_DATE_TIMEZONE=${TIMEZONE} ENV APPLICATION_ENV=production ENV SKIP_COMPOSER=false -COPY src/php/8.1/conf/ /opt/docker/ -COPY src/php/8.1/html/errors/ /var/www/errors/ -COPY src/php/8.1/www/ $CONTAINER_WORKDIR_PATH/ - # set timezone RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && echo $TIMEZONE > /etc/timezone +# Install nginx RUN set -x \ - # Install nginx && apk-install \ nginx \ - && docker-run-bootstrap \ - && docker-image-cleanup + && docker-run-bootstrap +# set php custom config +COPY src/php/8.1/conf/ /opt/docker/ +COPY src/php/8.1/html/errors/ /var/www/errors/ +COPY src/php/8.1/www/ $CONTAINER_WORKDIR_PATH/ + +# Expose Ports. EXPOSE 80 443 + +# set workdir WORKDIR $CONTAINER_WORKDIR_PATH diff --git a/src/php/8.2/Dockerfile b/src/php/8.2/Dockerfile index 3765bb3..9e38176 100644 --- a/src/php/8.2/Dockerfile +++ b/src/php/8.2/Dockerfile @@ -7,25 +7,28 @@ ENV WEB_DOCUMENT_ROOT=${CONTAINER_WORKDIR_PATH} \ WEB_PHP_TIMEOUT=600 \ WEB_PHP_SOCKET="" ENV WEB_PHP_SOCKET=127.0.0.1:9000 -ENV SERVICE_NGINX_CLIENT_MAX_BODY_SIZE="80m" +ENV SERVICE_NGINX_CLIENT_MAX_BODY_SIZE="50m" ENV TIMEZONE=Asia/Jakarta ENV PHP_DATE_TIMEZONE=${TIMEZONE} ENV APPLICATION_ENV=production ENV SKIP_COMPOSER=false -COPY src/php/8.2/conf/ /opt/docker/ -COPY src/php/8.2/html/errors/ /var/www/errors/ -COPY src/php/8.2/www/ $CONTAINER_WORKDIR_PATH/ - # set timezone RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && echo $TIMEZONE > /etc/timezone +# Install nginx RUN set -x \ - # Install nginx && apk-install \ nginx \ - && docker-run-bootstrap \ - && docker-image-cleanup + && docker-run-bootstrap +# set php custom config +COPY src/php/8.2/conf/ /opt/docker/ +COPY src/php/8.2/html/errors/ /var/www/errors/ +COPY src/php/8.2/www/ $CONTAINER_WORKDIR_PATH/ + +# Expose Ports. EXPOSE 80 443 + +# set workdir WORKDIR $CONTAINER_WORKDIR_PATH diff --git a/src/php/8.3/Dockerfile b/src/php/8.3/Dockerfile index dc185bf..d8a297c 100644 --- a/src/php/8.3/Dockerfile +++ b/src/php/8.3/Dockerfile @@ -7,25 +7,28 @@ ENV WEB_DOCUMENT_ROOT=${CONTAINER_WORKDIR_PATH} \ WEB_PHP_TIMEOUT=600 \ WEB_PHP_SOCKET="" ENV WEB_PHP_SOCKET=127.0.0.1:9000 -ENV SERVICE_NGINX_CLIENT_MAX_BODY_SIZE="80m" +ENV SERVICE_NGINX_CLIENT_MAX_BODY_SIZE="50m" ENV TIMEZONE=Asia/Jakarta ENV PHP_DATE_TIMEZONE=${TIMEZONE} ENV APPLICATION_ENV=production ENV SKIP_COMPOSER=false -COPY src/php/8.3/conf/ /opt/docker/ -COPY src/php/8.3/html/errors/ /var/www/errors/ -COPY src/php/8.3/www/ $CONTAINER_WORKDIR_PATH/ - # set timezone RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && echo $TIMEZONE > /etc/timezone +# Install nginx RUN set -x \ - # Install nginx && apk-install \ nginx \ - && docker-run-bootstrap \ - && docker-image-cleanup + && docker-run-bootstrap +# set php custom config +COPY src/php/8.3/conf/ /opt/docker/ +COPY src/php/8.3/html/errors/ /var/www/errors/ +COPY src/php/8.3/www/ $CONTAINER_WORKDIR_PATH/ + +# Expose Ports. EXPOSE 80 443 + +# set workdir WORKDIR $CONTAINER_WORKDIR_PATH