@@ -7,14 +7,6 @@ FROM php:8.1.31-fpm-alpine3.19 AS base
7
7
ENV MUSL_LOCALE_DEPS="cmake make musl-dev gcc gettext-dev libintl"
8
8
ENV MUSL_LOCPATH="/usr/share/i18n/locales/musl"
9
9
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
-
18
10
# Add Repositories
19
11
RUN rm -f /etc/apk/repositories &&\
20
12
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 \
35
27
# Add Production Dependencies
36
28
RUN apk add --update --no-cache \
37
29
bash \
38
- jq \
39
- nano \
40
- git \
41
30
openssh \
42
31
pcre-dev ${PHPIZE_DEPS} \
43
- jpegoptim \
44
- pngquant \
45
- optipng \
46
32
supervisor \
47
33
nginx \
48
34
dcron \
49
35
libcap \
50
36
icu-dev \
51
37
freetype-dev \
52
38
postgresql-dev \
53
- postgresql-client \
54
39
zip \
55
40
libzip-dev \
56
41
less \
57
- imagemagick \
58
42
libxslt-dev \
59
43
exiftool \
60
- imagemagick-dev \
61
44
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 \
64
53
65
54
# Configure & Install Extension
66
55
RUN docker-php-ext-configure \
@@ -70,10 +59,8 @@ RUN docker-php-ext-configure \
70
59
docker-php-ext-configure zip && \
71
60
docker-php-ext-install \
72
61
opcache \
73
- mysqli \
74
62
pgsql \
75
63
pdo \
76
- pdo_mysql \
77
64
pdo_pgsql \
78
65
sockets \
79
66
intl \
@@ -84,10 +71,7 @@ RUN docker-php-ext-configure \
84
71
bcmath \
85
72
exif \
86
73
zip \
87
- xsl \
88
- && docker-php-ext-enable \
89
- imagick \
90
- redis
74
+ xsl
91
75
92
76
# Create necessary directories and set permissions
93
77
RUN mkdir -p /var/run/nginx \
0 commit comments