Fix PHP version and remove useless extensions installation

This commit is contained in:
Bubka 2022-07-25 15:57:41 +02:00
parent 8e2617cc7d
commit 39b9e25435
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
ARG BUILDPLATFORM=linux/amd64
ARG TARGETPLATFORM
ARG ALPINE_VERSION=3.16
ARG PHP_VERSION=8.1-alpine${ALPINE_VERSION}
ARG PHP_VERSION=8.0-alpine${ALPINE_VERSION}
ARG COMPOSER_VERSION=2.3
ARG SUPERVISORD_VERSION=v0.7.3
@ -51,9 +51,9 @@ RUN apk add --update --no-cache \
# PHP SQLite driver
php8-pdo_sqlite php8-sqlite3 \
# PHP extensions
php8-xml php8-gd php8-mbstring php8-tokenizer php8-cli php8-fileinfo php8-bcmath php8-ctype php8-dom \
php8-xml php8-gd php8-mbstring php8-tokenizer php8-fileinfo php8-bcmath php8-ctype php8-dom \
# Runtime dependencies
php8-session php8-json php8-openssl \
php8-session php8-openssl \
# Nginx and PHP FPM to serve over HTTP
php8-fpm nginx

View File

@ -102,7 +102,7 @@ There are the following build arguments you can use to customize the image using
| `UID` | 1000 | The UID of the user to run the container as |
| `GID` | 1000 | The GID of the user to run the container as |
| `DEBIAN_VERSION` | `buster-slim` | The Debian version to use |
| `PHP_VERSION` | `8.1-buster` | The PHP version to use to get composer dependencies |
| `PHP_VERSION` | `8.0-buster` | The PHP version to use to get composer dependencies |
| `COMPOSER_VERSION` | `2.3` | The version of composer to use |
| `SUPERVISORD_VERSION` | `v0.7.3` | The version of supervisord to use |
| `VERSION` | `unknown` | The version of the image |