mirror of
https://github.com/librespeed/speedtest.git
synced 2026-10-22 00:01:11 +00:00
back to php alpine image
This commit is contained in:
parent
dcf30adca9
commit
81fdf0f5fd
1 changed files with 17 additions and 16 deletions
|
|
@ -1,24 +1,25 @@
|
|||
FROM alpine:3.18
|
||||
FROM php:8-alpine
|
||||
|
||||
# Use Alpine packages (php8-*) and apache2. Explicit php8 package names
|
||||
# avoid conflicts and improve multi-arch compatibility.
|
||||
# Use the mlocati helper to install PHP extensions in a platform-agnostic way.
|
||||
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||
|
||||
# Install runtime packages and let the helper install/compile PHP extensions
|
||||
RUN apk add --quiet --no-cache \
|
||||
bash \
|
||||
apache2 \
|
||||
wget \
|
||||
php8 \
|
||||
php8-apache2 \
|
||||
php8-ctype \
|
||||
php8-phar \
|
||||
php8-gd \
|
||||
php8-openssl \
|
||||
php8-pdo \
|
||||
php8-pdo_mysql \
|
||||
php8-pdo_pgsql \
|
||||
php8-pdo_sqlite \
|
||||
php8-pgsql \
|
||||
php8-session \
|
||||
php8-sqlite3
|
||||
curl \
|
||||
build-base \
|
||||
autoconf \
|
||||
libpng-dev \
|
||||
libjpeg-turbo-dev \
|
||||
libwebp-dev \
|
||||
freetype-dev \
|
||||
libxml2-dev \
|
||||
mariadb-connector-c-dev \
|
||||
postgresql-dev \
|
||||
sqlite-dev \
|
||||
&& install-php-extensions gd pdo pdo_mysql pdo_pgsql pdo_sqlite pgsql zip
|
||||
|
||||
# Note: PHP extensions are provided via Alpine `php-*` packages above.
|
||||
# The docker-php-extension-installer is redundant when using those packages,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue