1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

Upgrade alpine, node, PHP and snappymail

This commit is contained in:
Florent Daigniere
2023-12-20 12:53:59 +01:00
parent 98848b45c7
commit 0e522fceb7
5 changed files with 20 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
# syntax=docker/dockerfile-upstream:1.4.3
FROM node:16-alpine3.16
FROM node:21-alpine3.18
WORKDIR /work

View File

@@ -3,7 +3,7 @@
# base system image (intermediate)
# Note when updating the alpine tag, first manually run the workflow .github/workflows/mirror.yml.
# Just run the workflow with the tag that must be synchronised.
ARG DISTRO=ghcr.io/mailu/alpine:3.18.4
ARG DISTRO=ghcr.io/mailu/alpine:3.19.0
FROM $DISTRO as system
ENV TZ=Etc/UTC LANG=C.UTF-8
@@ -64,8 +64,10 @@ RUN set -euxo pipefail \
; curl -sL ${SNUFFLEUPAGUS_URL} | tar xz \
; cd snuffleupagus-${SNUFFLEUPAGUS_VERSION} \
; rm -rf src/tests/*php7*/ src/tests/*session*/ src/tests/broken_configuration/ src/tests/*cookie* src/tests/upload_validation/ \
; apk add --virtual .build-deps php81-dev php81-cgi php81-simplexml php81-xml pcre-dev build-base php81-pear php81-openssl re2c \
; pecl install vld-beta \
; apk add --virtual .build-deps php83-dev php83-cgi php83-simplexml php83-xml pcre-dev build-base php83-pear php83-openssl re2c \
; pecl83 install vld-beta \
; ln -s /usr/bin/phpize83 /usr/bin/phpize \
; ln -s /usr/bin/php-config83 /usr/bin/php-config \
; make -j $(grep -c processor /proc/cpuinfo) release \
; cp src/.libs/snuffleupagus.so /app \
; rm -rf /root/.cargo /tmp/*.pem /root/.cache
@@ -74,7 +76,7 @@ RUN set -euxo pipefail \
FROM system
COPY --from=build /app/venv/ /app/venv/
COPY --chown=root:root --from=build /app/snuffleupagus.so /usr/lib/php81/modules/
COPY --chown=root:root --from=build /app/snuffleupagus.so /usr/lib/php83/modules/
ENV \
VIRTUAL_ENV=/app/venv \