Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 8.4.1-alpine3.21 #431

Open
JIFVGWHvAseSovQ opened this issue Dec 14, 2024 · 1 comment
Open

Upgrade to 8.4.1-alpine3.21 #431

JIFVGWHvAseSovQ opened this issue Dec 14, 2024 · 1 comment
Labels
dependencies Pull requests that update a dependency file docker dockerfile or docker-compose setup

Comments

@JIFVGWHvAseSovQ
Copy link

JIFVGWHvAseSovQ commented Dec 14, 2024

Modification items

ARG BUILDPLATFORM=linux/amd64
ARG TARGETPLATFORM
ARG ALPINE_VERSION=3.21
ARG PHP_VERSION=8.4.1-alpine${ALPINE_VERSION}
ARG COMPOSER_VERSION=2.8.4
ARG SUPERVISORD_VERSION=v0.7.3
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions \
    && sed -i 's/E_STRICT/E_ALL/g' /usr/local/lib/php/pearcmd.php \
    && pear channel-update pear.php.net \
    && install-php-extensions gd bcmath
ENV PHP_BIN=php84
RUN ln -s /usr/bin/${PHP_BIN} /usr/bin/php &&  \
    apk add --update --no-cache \
    # PHP
    ${PHP_BIN} \
    # Composer dependencies
    ${PHP_BIN}-phar \
    # PHP SQLite, MySQL/MariaDB & Postgres drivers
    ${PHP_BIN}-pdo_sqlite ${PHP_BIN}-sqlite3 ${PHP_BIN}-pdo_mysql ${PHP_BIN}-pdo_pgsql ${PHP_BIN}-pgsql \
    # PHP extensions
    ${PHP_BIN}-xml ${PHP_BIN}-gd ${PHP_BIN}-mbstring ${PHP_BIN}-tokenizer ${PHP_BIN}-fileinfo ${PHP_BIN}-bcmath ${PHP_BIN}-ctype ${PHP_BIN}-dom php-redis \
    # Runtime dependencies
    ${PHP_BIN}-session ${PHP_BIN}-openssl \
    # Nginx and PHP FPM to serve over HTTP
    ${PHP_BIN}-fpm nginx

# PHP FPM configuration
# Change username and ownership in php-fpm pool config
RUN sed -i '/user = nobody/d' /etc/${PHP_BIN}/php-fpm.d/www.conf && \
    sed -i '/group = nobody/d' /etc/${PHP_BIN}/php-fpm.d/www.conf && \
    sed -i '/listen.owner/d' /etc/${PHP_BIN}/php-fpm.d/www.conf && \
    sed -i '/listen.group/d' /etc/${PHP_BIN}/php-fpm.d/www.conf

RUN mkdir /run/php && \
    chown ${UID}:${GID} /run/php /var/log/${PHP_BIN} && \
    chmod 700 /run/php /var/log/${PHP_BIN}
https://github.com/Bubka/2FAuth/blob/master/Dockerfile
@Bubka
Copy link
Owner

Bubka commented Dec 31, 2024

Hi,
thx for this contribution. The base image will be upgraded on the next 2FAuth release.

@Bubka Bubka added dependencies Pull requests that update a dependency file docker dockerfile or docker-compose setup labels Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file docker dockerfile or docker-compose setup
Projects
Status: Todo
Development

No branches or pull requests

2 participants