Skip to content

Commit 5d917ad

Browse files
committed
Upgrade PHP version 8.0.1, update alpine version, 3.13, update libstemmer version 2.1.0, upgrade composer version 2.0.8
1 parent beb3ac9 commit 5d917ad

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

Dockerfile

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
FROM php:7.4.3-fpm-alpine3.11
1+
FROM php:8.0.1-fpm-alpine3.13
22

33
LABEL maintainer="Andrea Maccis <andrea.maccis@gmail.com>"
44

5-
ENV LIBSTEMMER_URL "https://snowballstem.org/dist/libstemmer_c.tgz"
5+
ENV LIBSTEMMER_VERSION 2.1.0
6+
ENV COMPOSER_VERSION 2.0.8
7+
8+
ENV LIBSTEMMER_DIRECTORY "libstemmer_c-${LIBSTEMMER_VERSION}"
9+
ENV LIBSTEMMER_FILENAME "${LIBSTEMMER_DIRECTORY}.tar.gz"
10+
ENV LIBSTEMMER_URL "https://snowballstem.org/dist/${LIBSTEMMER_FILENAME}"
611
ENV COMPOSER_URL "https://getcomposer.org/installer"
7-
ENV COMPOSER_VERSION 1.9.3
812

913
COPY Makefile /usr/src
1014

@@ -23,15 +27,15 @@ RUN set -eux; \
2327
# libstemmer
2428
mkdir -p /usr/src; \
2529
cd /usr/src; \
26-
curl -fsSL -o libstemmer_c.tgz $LIBSTEMMER_URL; \
27-
tar xfz /usr/src/libstemmer_c.tgz; \
28-
mv Makefile libstemmer_c; \
29-
cd libstemmer_c; \
30+
curl -fsSL -o $LIBSTEMMER_FILENAME $LIBSTEMMER_URL; \
31+
tar xfz /usr/src/$LIBSTEMMER_FILENAME; \
32+
mv Makefile $LIBSTEMMER_DIRECTORY; \
33+
cd $LIBSTEMMER_DIRECTORY; \
3034
make; \
3135
cp libstemmer.so /usr/lib; \
3236
cd /usr/src; \
33-
rm -rf libstemmer_c; \
34-
rm libstemmer_c.tgz; \
37+
rm -rf $LIBSTEMMER_DIRECTORY; \
38+
rm $LIBSTEMMER_FILENAME; \
3539
# composer
3640
curl -sS $COMPOSER_URL | php -- \
3741
--install-dir=/usr/local/bin \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# amaccis/php-libstemmer
22

3-
The purpouse of this image is to provide an Alpine Linux environment with PHP 7.4 onboard, its [FFI](https://www.php.net/manual/en/book.ffi.php) extension enabled and the [libstemmer](https://snowballstem.org/dist/libstemmer_c.tgz) compiled as a shared library. Besides, [composer](https://getcomposer.org) is included.
3+
The purpouse of this image is to provide an Alpine Linux environment with PHP 8 onboard, its [FFI](https://www.php.net/manual/en/book.ffi.php) extension enabled and the [libstemmer](https://snowballstem.org/dist/libstemmer_c.tgz) compiled as a shared library. Besides, [composer](https://getcomposer.org) is included.
44

55
# Snowball and libstemmer
66

0 commit comments

Comments
 (0)