From e679a66db0691c8476086647ca3151e69dd3c7b5 Mon Sep 17 00:00:00 2001 From: Yuji Sasaki Date: Thu, 11 Aug 2022 18:55:24 +0900 Subject: [PATCH 1/5] use specific node version --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 49c4351..7dd06e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:alpine +FROM node:14.20-alpine RUN set -x && \ apk update && \ From 539c702233927fa1ee2df956b2e86430761bcd2e Mon Sep 17 00:00:00 2001 From: Yuji Sasaki Date: Thu, 11 Aug 2022 19:50:27 +0900 Subject: [PATCH 2/5] using php8 --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7dd06e2..bc10729 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,5 @@ -FROM node:14.20-alpine +FROM node:14.20-alpine3.15 RUN set -x && \ apk update && \ - apk add --no-cache php5 php5-openssl php5-json php5-phar php5-zlib && \ - cd /usr/bin && \ - php -r "copy('http://getcomposer.org/installer', 'composer-setup.php');" && \ - php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \ - php composer-setup.php && \ - php -r "unlink('composer-setup.php');" && \ - mv composer.phar composer + apk add --no-cache php8 php8-openssl php8-json php8-phar php8-zlib composer From c048def0df3bc4ccb4da5fe3db68e0fdda062ecb Mon Sep 17 00:00:00 2001 From: Yuji Sasaki Date: Thu, 11 Aug 2022 21:26:06 +0900 Subject: [PATCH 3/5] add php alias --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bc10729..569ae77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,5 @@ FROM node:14.20-alpine3.15 RUN set -x && \ apk update && \ - apk add --no-cache php8 php8-openssl php8-json php8-phar php8-zlib composer + apk add --no-cache php8 php8-openssl php8-json php8-phar php8-zlib php8-xml composer && \ + alias php='php8' From 30884fd85c5de0964cd65ce8afeff6f815121aa8 Mon Sep 17 00:00:00 2001 From: Yuji Sasaki Date: Thu, 11 Aug 2022 21:41:07 +0900 Subject: [PATCH 4/5] make symbolic link for php8 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 569ae77..811ed51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,4 @@ FROM node:14.20-alpine3.15 RUN set -x && \ apk update && \ apk add --no-cache php8 php8-openssl php8-json php8-phar php8-zlib php8-xml composer && \ - alias php='php8' + ln -s /usr/bin/php8 /usr/bin/php From 10f091c9691c456fa5da2bd8bc559a1c345396c6 Mon Sep 17 00:00:00 2001 From: Yuji Sasaki Date: Thu, 11 Aug 2022 22:56:24 +0900 Subject: [PATCH 5/5] add required php extensions --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 811ed51..bd9e56a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,5 +2,5 @@ FROM node:14.20-alpine3.15 RUN set -x && \ apk update && \ - apk add --no-cache php8 php8-openssl php8-json php8-phar php8-zlib php8-xml composer && \ + apk add --no-cache php8 php8-openssl php8-json php8-phar php8-zlib php8-xml php8-simplexml php8-tokenizer php8-xmlwriter composer && \ ln -s /usr/bin/php8 /usr/bin/php