@@ -7,14 +7,6 @@ FROM php:8.1.31-fpm-alpine3.19 AS base
77ENV MUSL_LOCALE_DEPS="cmake make musl-dev gcc gettext-dev libintl"
88ENV MUSL_LOCPATH="/usr/share/i18n/locales/musl"
99
10- RUN apk add --no-cache \
11- $MUSL_LOCALE_DEPS \
12- && wget https://gitlab.com/rilian-la-te/musl-locales/-/archive/master/musl-locales-master.zip \
13- && unzip musl-locales-master.zip \
14- && cd musl-locales-master \
15- && cmake -DLOCALE_PROFILE=OFF -D CMAKE_INSTALL_PREFIX:PATH=/usr . && make && make install \
16- && cd .. && rm -r musl-locales-master
17-
1810# Add Repositories
1911RUN rm -f /etc/apk/repositories &&\
2012 echo "http://dl-cdn.alpinelinux.org/alpine/v3.19/main" >> /etc/apk/repositories && \
@@ -35,32 +27,29 @@ RUN apk update && apk add --no-cache --virtual .build-deps \
3527# Add Production Dependencies
3628RUN apk add --update --no-cache \
3729 bash \
38- jq \
39- nano \
40- git \
4130 openssh \
4231 pcre-dev ${PHPIZE_DEPS} \
43- jpegoptim \
44- pngquant \
45- optipng \
4632 supervisor \
4733 nginx \
4834 dcron \
4935 libcap \
5036 icu-dev \
5137 freetype-dev \
5238 postgresql-dev \
53- postgresql-client \
5439 zip \
5540 libzip-dev \
5641 less \
57- imagemagick \
5842 libxslt-dev \
5943 exiftool \
60- imagemagick-dev \
6144 chromium \
62- && pecl install redis \
63- && pecl install -o -f imagick
45+ $MUSL_LOCALE_DEPS \
46+ && wget https://gitlab.com/rilian-la-te/musl-locales/-/archive/master/musl-locales-master.zip \
47+ && unzip musl-locales-master.zip \
48+ && cd musl-locales-master \
49+ && cmake -DLOCALE_PROFILE=OFF -D CMAKE_INSTALL_PREFIX:PATH=/usr . && make && make install \
50+ && cd .. && rm -r musl-locales-master
51+
52+ # removed : nano \ less \ git \ jpegoptim \ pngquant \ optipng \
6453
6554# Configure & Install Extension
6655RUN docker-php-ext-configure \
@@ -70,10 +59,8 @@ RUN docker-php-ext-configure \
7059 docker-php-ext-configure zip && \
7160 docker-php-ext-install \
7261 opcache \
73- mysqli \
7462 pgsql \
7563 pdo \
76- pdo_mysql \
7764 pdo_pgsql \
7865 sockets \
7966 intl \
@@ -84,10 +71,7 @@ RUN docker-php-ext-configure \
8471 bcmath \
8572 exif \
8673 zip \
87- xsl \
88- && docker-php-ext-enable \
89- imagick \
90- redis
74+ xsl
9175
9276# Create necessary directories and set permissions
9377RUN mkdir -p /var/run/nginx \
0 commit comments