• Joined on 2024-07-26

kupshop-base (latest)

Published 2025-02-07 13:58:54 +01:00 by lukas

Installation

docker pull gitea.ltrk.dev/lukas/kupshop-base:latest
sha256:3eeec77731898fea7b8d0cb36e6ae7e6becf78e865405a69fd430137d2af8ea8

Image Layers

# debian.sh --arch 'arm64' out/ 'bookworm' '@1738540800'
RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
ENV PHP_INI_DIR=/usr/local/etc/php
RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_LDFLAGS=-Wl,-O1 -pie
ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
ENV PHP_VERSION=8.3.16
ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
COPY docker-php-source /usr/local/bin/ # buildkit
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --enable-phpdbg --enable-phpdbg-readline --with-pear --with-libdir="lib/$debMultiarch" --enable-embed ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
ENTRYPOINT ["docker-php-entrypoint"]
CMD ["php" "-a"]
WORKDIR /var/www/html
EXPOSE map[80/tcp:{}]
RUN /bin/sh -c set -eux; sed -i '/\[openssl_init\]/a ssl_conf = ssl_configuration' /etc/ssl/openssl.cnf; echo "\n[ssl_configuration]" >> /etc/ssl/openssl.cnf; echo "system_default = tls_system_default" >> /etc/ssl/openssl.cnf; echo "\n[tls_system_default]" >> /etc/ssl/openssl.cnf; echo "MinProtocol = TLSv1" >> /etc/ssl/openssl.cnf; echo "CipherString = DEFAULT@SECLEVEL=0" >> /etc/ssl/openssl.cnf; # buildkit
COPY uwsgi_profile.ini /usr/src/wpj.ini # buildkit
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends python3 libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev libpcre2-dev libreadline-dev libonig-dev ; export UWSGI_VERSION=php_disconnect; cd /usr/src; curl -fsSL -o uwsgi.tar.gz https://github.com/cuchac/uwsgi/archive/refs/heads/${UWSGI_VERSION}.tar.gz; tar -xvzf uwsgi.tar.gz; cd uwsgi-${UWSGI_VERSION}; mv /usr/src/wpj.ini buildconf/wpj.ini; ln -s libphp.so /usr/local/lib/libphp8.so; sed -i "s/p_ldflags_blacklist = ('-Wl,--no-undefined',)/p_ldflags_blacklist = ('-Wl,--no-undefined', '-pie')/" uwsgiconfig.py; UWSGICONFIG_PHPDIR=/usr/local python3 uwsgiconfig.py --build wpj; mkdir /usr/local/uwsgi; mv uwsgi *_plugin.so /usr/local/uwsgi; rm -rf /usr/src/uwsgi-${UWSGI_VERSION}; cd /usr/src; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
RUN /bin/sh -c apt-get update && apt install -y --no-install-recommends libicu-dev libxml2-dev wget libjpeg62-turbo-dev libwebp-dev libbz2-dev zlib1g-dev libc-client-dev libmagickwand-dev libxslt-dev libzip-dev mariadb-client libonig-dev && docker-php-ext-configure gd --with-jpeg=/usr --with-webp=/usr && docker-php-ext-configure ftp --with-openssl-dir=/usr && docker-php-ext-install pdo_mysql intl mbstring soap bz2 zip bcmath gd xsl calendar opcache gettext sockets ftp && apt install -y --no-install-recommends libmemcached-dev librabbitmq-dev librdkafka-dev && pecl install memcached apcu amqp igbinary rdkafka && pecl install --configureoptions 'enable-redis-igbinary="yes"' redis && docker-php-ext-enable igbinary memcached apcu amqp sockets redis && apt-get update && apt-get install -y --no-install-recommends nano procps iputils-ping ghostscript less unzip python3-pip && pip install --break-system-packages xlsx-streaming json-stream # buildkit
RUN /bin/sh -c cd /tmp && wget https://github.com/Imagick/imagick/archive/refs/heads/master.tar.gz && tar xvzf master.tar.gz && cd imagick-master && phpize && ls && ./configure && make && make install && docker-php-ext-enable imagick # buildkit
RUN /bin/sh -c apt-get remove --purge -y libicu-dev libxml2-dev libbz2-dev zlib1g-dev libc-client-dev libkrb5-dev git libmagickwand-dev ruby-dev automake libtool && rm -rf /var/lib/apt/lists/* # buildkit
COPY imagick.xml /etc/ImageMagick-6/policy.xml # buildkit
COPY /opt/libv8 /opt/v8/ # buildkit
RUN /bin/sh -c cd /tmp && wget https://github.com/phpv8/v8js/archive/refs/heads/php8.tar.gz && tar xvzf php8.tar.gz && cd v8js-php8 && phpize && ./configure --with-v8js=/opt/v8 LDFLAGS="-lstdc++" CPPFLAGS="-DV8_COMPRESS_POINTERS " && make -j4 && make install && echo "extension=v8js.so" > /usr/local/etc/php/conf.d/v8js.ini # buildkit
Details
Container
2025-02-07 13:58:54 +01:00
8
OCI / Docker
linux/arm64/v8
351 MiB
Versions (1) View all
latest 2025-02-07