Skip to content

Commit aee71d0

Browse files
authored
Merge pull request #18 from appwrite/feat-update-versions
Update base image and extension versions
2 parents 89ab31a + 5351b67 commit aee71d0

File tree

2 files changed

+26
-28
lines changed

2 files changed

+26
-28
lines changed

Dockerfile

+25-27
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM php:8.0.18-cli-alpine3.15 as compile
2-
3-
ENV PHP_REDIS_VERSION=5.3.7 \
4-
PHP_MONGODB_VERSION=1.16.1 \
5-
PHP_SWOOLE_VERSION=v5.0.1 \
6-
PHP_IMAGICK_VERSION=3.7.0 \
7-
PHP_YAML_VERSION=2.2.3 \
8-
PHP_MAXMINDDB_VERSION=v1.11.0 \
9-
PHP_SCRYPT_COMMIT_SHA="845b889bdbe817afe1633237f8fc68667c7a700b" \
10-
PHP_ZSTD_VERSION="9a01a21b1f1555100540db0ae4f71274407f7896" \
11-
PHP_BROTLI_VERSION="50aa46650c79339e5e886919dbfcb6edac00967f" \
1+
FROM php:8.0.30-cli-alpine3.16 as compile
2+
3+
ENV PHP_REDIS_VERSION="5.3.7" \
4+
PHP_MONGODB_VERSION="1.16.1" \
5+
PHP_SWOOLE_VERSION="v5.0.3" \
6+
PHP_IMAGICK_VERSION="3.7.0" \
7+
PHP_YAML_VERSION="2.2.3" \
8+
PHP_MAXMINDDB_VERSION="v1.11.0" \
9+
PHP_SCRYPT_VERSION="2.0.1" \
10+
PHP_ZSTD_VERSION="0.12.3" \
11+
PHP_BROTLI_VERSION="0.14.0" \
1212
PHP_SNAPPY_VERSION="c27f830dcfe6c41eb2619a374de10fd0597f4939" \
1313
PHP_LZ4_VERSION="2f006c3e4f1fb3a60d2656fc164f9ba26b71e995"
1414

@@ -112,19 +112,19 @@ RUN git clone --recursive -n https://github.com/kjdev/php-ext-zstd.git \
112112
## Brotli Extension
113113
FROM compile as brotli
114114
RUN git clone https://github.com/kjdev/php-ext-brotli.git \
115-
&& cd php-ext-brotli \
116-
&& git reset --hard $PHP_BROTLI_VERSION \
117-
&& phpize \
118-
&& ./configure --with-libbrotli \
119-
&& make && make install
115+
&& cd php-ext-brotli \
116+
&& git reset --hard $PHP_BROTLI_VERSION \
117+
&& phpize \
118+
&& ./configure --with-libbrotli \
119+
&& make && make install
120120

121121
## LZ4 Extension
122122
FROM compile AS lz4
123123
RUN git clone --recursive https://github.com/kjdev/php-ext-lz4.git \
124124
&& cd php-ext-lz4 \
125125
&& git reset --hard $PHP_LZ4_VERSION \
126126
&& phpize \
127-
&& ./configure --with-lz4-includedir=/usr \
127+
&& ./configure --with-lz4-includedir=/usr \
128128
&& make && make install
129129

130130
## Snappy Extension
@@ -138,20 +138,19 @@ RUN git clone --recursive https://github.com/kjdev/php-ext-snappy.git \
138138

139139
## Scrypt Extension
140140
FROM compile AS scrypt
141-
RUN \
142-
git clone --depth 1 https://github.com/DomBlack/php-scrypt.git && \
143-
cd php-scrypt && \
144-
git checkout $PHP_SCRYPT_COMMIT_SHA && \
145-
phpize && \
146-
./configure --enable-scrypt && \
147-
make && make install
141+
RUN git clone --depth 1 https://github.com/DomBlack/php-scrypt.git \
142+
&& cd php-scrypt \
143+
&& git reset --hard $PHP_SCRYPT_VERSION \
144+
&& phpize \
145+
&& ./configure --enable-scrypt \
146+
&& make && make install
148147

149-
FROM php:8.0.18-cli-alpine3.15 as final
148+
FROM php:8.0.30-cli-alpine3.16 as final
150149

151150
LABEL maintainer="[email protected]"
152151

153152
ENV DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
154-
ENV DOCKER_COMPOSE_VERSION=v2.5.0
153+
ENV DOCKER_COMPOSE_VERSION=v2.20.3
155154

156155
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
157156

@@ -205,7 +204,6 @@ COPY --from=brotli /usr/local/lib/php/extensions/no-debug-non-zts-20200930/brotl
205204
COPY --from=lz4 /usr/local/lib/php/extensions/no-debug-non-zts-20200930/lz4.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/
206205
COPY --from=snappy /usr/local/lib/php/extensions/no-debug-non-zts-20200930/snappy.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/
207206

208-
209207
# Enable Extensions
210208
RUN echo extension=swoole.so >> /usr/local/etc/php/conf.d/swoole.ini
211209
RUN echo extension=redis.so >> /usr/local/etc/php/conf.d/redis.ini

tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ commandTests:
107107
- name: 'Imagemagick command'
108108
command: "magick"
109109
args: ["--version"]
110-
expectedOutput: [".*ImageMagick 7.1.0-16.*"]
110+
expectedOutput: [".*ImageMagick 7.1.0-50.*"]
111111
- name: 'rsync command'
112112
command: "rsync"
113113
args: ["--version"]

0 commit comments

Comments
 (0)