From 97345e5959c87650149e09fea0d5cf311ec52cbb Mon Sep 17 00:00:00 2001 From: xwiz Date: Thu, 15 Sep 2022 13:36:39 -0700 Subject: [PATCH 1/2] Add section for regular install --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index ae88d30..3ef4847 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,21 @@ The following code snippets are intended for quick usage on either shell scripts > Notice that `main` and `community` official repositories must be enabled. +## Example Installation +``` +wget https://php.hernandev.com/key/php-alpine.rsa.pub -O /etc/apk/keys/php-alpine.rsa.pub + +apk --update-cache add ca-certificates && \ + echo "https://php.hernandev.com/v3.15/php-8.1" >> /etc/apk/repositories + +apk add --update-cache \ + php \ + php-bz2 \ + php-json \ + php-any other available package \ + +``` + ### Dockerfile You may skip the ca-certificates part if you replace HTTPS by HTTP but you should not. PHP packages will eventually install ca-certificates anyway. From 31f8882cf748999afc58ddc7eb8d50bcf34bc9ea Mon Sep 17 00:00:00 2001 From: xwiz Date: Thu, 15 Sep 2022 14:00:23 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3ef4847..4a53e79 100644 --- a/README.md +++ b/README.md @@ -86,11 +86,18 @@ wget https://php.hernandev.com/key/php-alpine.rsa.pub -O /etc/apk/keys/php-alpin apk --update-cache add ca-certificates && \ echo "https://php.hernandev.com/v3.15/php-8.1" >> /etc/apk/repositories -apk add --update-cache \ - php \ - php-bz2 \ - php-json \ - php-any other available package \ +apk add --update-cache php=8.1 +apk add php-phar=8.1 +apk add php-mbstring=8.1 +apk add php-iconv=8.1 +apk add php-openssl=8.1 +apk add php-curl=8.1 +apk add php-pdo_mysql=8.1 +apk add php-gettext=8.1 +apk add php-intl=8.1 +apk add php-sqlite3=8.1 + +#etc... ```