Skip to content

Commit e6ca54e

Browse files
sstidlstefanstidlffgCopilot
authored
Fix/arm alpine (#729)
* use alpine base image * back to php alpine image * Update Dockerfile.alpine Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add iconv in alpine * seperate build base --------- Co-authored-by: Stefan Stidl <stefan.stidl@ffg.at> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent cb265a2 commit e6ca54e

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

Dockerfile.alpine

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
FROM php:8-alpine
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
27
RUN apk add --quiet --no-cache \
38
bash \
49
apache2 \
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
10+
wget \
11+
curl \
12+
&& apk add --quiet --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
1725

1826
# Note: PHP extensions are provided via Alpine `php-*` packages above.
1927
# The docker-php-extension-installer is redundant when using those packages,

0 commit comments

Comments
 (0)