Skip to content

Commit 61ec779

Browse files
fix alpine image again
1 parent b1a5cea commit 61ec779

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

Dockerfile.alpine

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
1-
FROM php:8.3-alpine3.19
2-
3-
# Use the mlocati helper to install PHP extensions in a platform-agnostic way.
4-
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
5-
6-
# Install runtime packages and let the helper install/compile PHP extensions
7-
RUN apk add --no-cache \
1+
FROM php:8-alpine
2+
RUN apk add --quiet --no-cache \
83
bash \
94
apache2 \
10-
wget \
11-
curl \
12-
&& apk add --no-cache --virtual .build-deps \
13-
build-base \
14-
autoconf \
15-
libpng-dev \
16-
libjpeg-turbo-dev \
17-
libwebp-dev \
18-
freetype-dev \
19-
libxml2-dev \
20-
mariadb-connector-c-dev \
21-
postgresql-dev \
22-
sqlite-dev \
23-
&& install-php-extensions iconv gd pdo pdo_mysql pdo_pgsql pdo_sqlite pgsql zip \
24-
&& apk del .build-deps
25-
26-
# Note: PHP extensions are provided via Alpine `php-*` packages above.
27-
# The docker-php-extension-installer is redundant when using those packages,
28-
# so it's intentionally removed to simplify the image.
5+
php-apache2 \
6+
php-ctype \
7+
php-phar \
8+
php-gd \
9+
php-openssl \
10+
php-pdo \
11+
php-pdo_mysql \
12+
php-pdo_pgsql \
13+
php-pdo_sqlite \
14+
php-pgsql \
15+
php-session \
16+
php-sqlite3
17+
18+
# # use docker-php-extension-installer for automatically get the right packages installed
19+
# ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
20+
21+
# # Install extensions
22+
# RUN install-php-extensions iconv gd pdo pdo_mysql pdo_pgsql pgsql
2923

3024
RUN ln -sf /dev/stdout /var/log/apache2/access.log && \
3125
ln -sf /dev/stderr /var/log/apache2/error.log

0 commit comments

Comments
 (0)