Skip to content

Commit 52b83d6

Browse files
committed
Update PHP 5.6 image to Alpine 3.14
1 parent c80ad39 commit 52b83d6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

php/Dockerfile-5.6

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.8
1+
FROM alpine:3.14
22

33
ARG PHP_VERSION=5.6
44
ARG ATATUS_VERSION=1.12.0
@@ -85,7 +85,12 @@ RUN apk add --no-cache \
8585
fcgi \
8686
nano
8787

88-
RUN apk add --no-cache \
88+
RUN apk add --repository http://dl-cdn.alpinelinux.org/alpine/v3.8/main \
89+
libressl-dev=2.7.5-r0 \
90+
readline=7.0.003-r0 \
91+
icu-libs=60.2-r3
92+
93+
RUN apk add --repository http://dl-cdn.alpinelinux.org/alpine/v3.8/community --update-cache \
8994
php5 \
9095
php5-common \
9196
php5-curl \
@@ -100,7 +105,6 @@ RUN apk add --no-cache \
100105
php5-posix \
101106
php5-soap \
102107
php5-zip \
103-
php5-ldap \
104108
php5-bcmath \
105109
php5-calendar \
106110
php5-gettext \
@@ -135,7 +139,7 @@ RUN mkdir /etc/php && \
135139
ln -snf /etc/php5 /etc/php/current
136140

137141
# Imagick
138-
RUN apk add --no-cache autoconf php5-dev gcc make g++ zlib-dev wget imagemagick-dev && \
142+
RUN apk add --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.8/community autoconf php5-dev gcc make g++ zlib-dev wget imagemagick-dev && \
139143
mkdir /imagick && cd /imagick && \
140144
wget http://pecl.php.net/get/imagick-3.4.4.tgz && \
141145
tar xzf imagick-3.4.4.tgz && cd imagick-3.4.4 && \
@@ -147,7 +151,7 @@ RUN apk add --no-cache autoconf php5-dev gcc make g++ zlib-dev wget imagemagick-
147151
RUN rm -rf /imagick
148152

149153
# Imagick support file types
150-
RUN apk add --no-cache imagemagick
154+
RUN apk add --repository http://dl-cdn.alpinelinux.org/alpine/v3.8/main --no-cache imagemagick
151155

152156
# Add php5-redis
153157
RUN apk --no-cache add ca-certificates wget && \

0 commit comments

Comments
 (0)