Skip to content

Commit eb94850

Browse files
committed
Drupal 10.5.1 und libavif support
1 parent 2430b2f commit eb94850

File tree

2 files changed

+95
-93
lines changed

2 files changed

+95
-93
lines changed

Dockerfile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM composer:2 AS COMPOSER_CHAIN
1+
FROM composer:2 AS cchain
22
COPY / /tmp/cdv
33
WORKDIR /tmp/cdv
44
RUN composer install --no-dev
@@ -10,7 +10,7 @@ RUN { \
1010
rm -rf .git/;
1111

1212
FROM php:8.3-fpm-alpine
13-
MAINTAINER Michael Büchner <m.buechner@dnb.de>
13+
LABEL org.opencontainers.image.authors="m.buechner@dnb.de"
1414

1515
# Install packages
1616
RUN apk --no-cache add \
@@ -30,6 +30,7 @@ RUN set -eux; \
3030
libjpeg-turbo-dev \
3131
libpng-dev \
3232
libwebp-dev \
33+
libavif-dev \
3334
libzip-dev \
3435
pcre-dev \
3536
autoconf \
@@ -41,8 +42,9 @@ RUN set -eux; \
4142
\
4243
docker-php-ext-configure gd \
4344
--with-freetype \
44-
--with-jpeg=/usr/include \
45-
--with-webp; \
45+
--with-jpeg \
46+
--with-webp \
47+
--with-avif; \
4648
\
4749
docker-php-ext-install -j "$(nproc)" \
4850
gd \
@@ -74,8 +76,8 @@ RUN set -eux; \
7476
git \
7577
postgresql-dev;
7678

77-
ENV RUN_USER nobody
78-
ENV RUN_GROUP 0
79+
ENV RUN_USER=nobody
80+
ENV RUN_GROUP=0
7981

8082
# add PHP config
8183
COPY --chown=${RUN_USER}:${RUN_GROUP} ./config/php/ /usr/local/etc/php/conf.d/
@@ -94,12 +96,12 @@ COPY --chown=${RUN_USER}:${RUN_GROUP} config/supervisord/supervisord.conf /etc/s
9496

9597
# Add application
9698
WORKDIR /var/www/html
97-
COPY --chown=${RUN_USER}:${RUN_GROUP} --from=COMPOSER_CHAIN /tmp/cdv/ .
99+
COPY --chown=${RUN_USER}:${RUN_GROUP} --from=cchain /tmp/cdv/ .
98100
ENV PATH=${PATH}:/var/www/html/vendor/bin
99101

100102
RUN \
101-
# Create symlink for php7.4
102-
ln -s /usr/bin/php7.4 /usr/bin/php; \
103+
# Create symlink for php8
104+
ln -s /usr/bin/php8 /usr/bin/php; \
103105
# Use the default PHP production configuration
104106
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"; \
105107
# Move entrypoint script in place
@@ -112,7 +114,7 @@ RUN \
112114
cp /etc/ssl/mykey.pem /etc/ssl/mykey.pem.orig; \
113115
openssl rsa -passin pass:foobar -in /etc/ssl/mykey.pem.orig -out /etc/ssl/mykey.pem; \
114116
# Generating certificate signing request
115-
openssl req -new -key /etc/ssl/mykey.pem -out /etc/ssl/mycert.csr -subj "/C=DE/ST=DE/L=Frankfurt am Main/O=Deutsche Nationalbibliothek/OU=IT.DDB/CN=Coding da Vinci"; \
117+
openssl req -new -key /etc/ssl/mykey.pem -out /etc/ssl/mycert.csr -subj "/C=DE/ST=DE/L=Frankfurt am Main/O=Deutsche Nationalbibliothek/OU=GD.DDB/CN=Coding da Vinci"; \
116118
# Generating self-signed certificate
117119
openssl x509 -req -days 3650 -in /etc/ssl/mycert.csr -signkey /etc/ssl/mykey.pem -out /etc/ssl/mycert.pem; \
118120
# Make sure files/folders needed by the processes are accessable when they run under the nobody user

0 commit comments

Comments
 (0)