• Joined on 2025-10-27

clipbin (main)

Published 2026-05-08 16:59:48 +01:00 by harry

Installation

docker pull git.bayliss.cloud/harry/clipbin:main
sha256:bbe6e635cd65a0b2e7709acfc24a8881dd624918143a79bb6876dc23730d2d00

Images

Digest OS / Arch Size
4dc3320537 linux/amd64 431 MiB

Image Layers ( linux/amd64)

# debian.sh --arch 'amd64' out/ 'trixie' '@1776729600'
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 ; apt-get dist-clean # 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=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD
ENV PHP_VERSION=8.4.20
ENV PHP_URL=https://www.php.net/distributions/php-8.4.20.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.20.tar.xz.asc
ENV PHP_SHA256=e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; 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; 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"; 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; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --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 --enable-zts --disable-zend-signals ; 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 -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; 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 opcache # buildkit
RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
ENTRYPOINT ["docker-php-entrypoint"]
CMD ["php" "-a"]
ARG REPOSITORY_BUILD_VERSION=dev
ARG FRANKENPHP_VERSION
COPY --chmod=755 src/common/ / # buildkit
COPY --chmod=755 src/utilities-webservers/ / # buildkit
RUN |2 REPOSITORY_BUILD_VERSION=v4.3.5-25366875788 FRANKENPHP_VERSION=1.12.2 /bin/sh -c set -eux; mkdir -p /var/www/html/public /etc/ssl/healthcheck /config/caddy /data/caddy /etc/caddy /etc/frankenphp/ssl-mode /etc/frankenphp/log-level /etc/frankenphp/auto-https /etc/frankenphp/caddyfile.d; echo '<?php phpinfo();' > /var/www/html/public/index.php; ln -sf /var/www/html /app; chown -R www-data:www-data /var/www/; chmod -R 755 /var/www/; echo "${REPOSITORY_BUILD_VERSION}" > /etc/serversideup-php-version; echo "${FRANKENPHP_VERSION}" > /etc/serversideup-php-frankenphp-version # buildkit
ARG DEPENDENCY_PACKAGES_ALPINE=shadow libstdc++
ARG DEPENDENCY_PACKAGES_DEBIAN=procps libstdc++6 zip
ARG DEPENDENCY_PHP_EXTENSIONS=opcache pcntl pdo_mysql pdo_pgsql redis zip
ARG REPOSITORY_BUILD_VERSION=dev
LABEL org.opencontainers.image.title=serversideup/php (frankenphp) org.opencontainers.image.description=Supercharge your PHP experience. Based off the official PHP images, serversideup/php includes pre-configured PHP extensions and settings for enhanced performance and security. Optimized for Laravel and WordPress. org.opencontainers.image.url=https://serversideup.net/open-source/docker-php/ org.opencontainers.image.source=https://github.com/serversideup/docker-php org.opencontainers.image.documentation=https://serversideup.net/open-source/docker-php/docs/ org.opencontainers.image.vendor=ServerSideUp org.opencontainers.image.authors=Jay Rogers (@jaydrogers) org.opencontainers.image.version=v4.3.5-25366875788 org.opencontainers.image.licenses=GPL-3.0-or-later
ENV APP_BASE_DIR=/var/www/html CADDY_ADMIN=off CADDY_AUTO_HTTPS=off CADDY_GLOBAL_OPTIONS= CADDY_HTTP_PORT=8080 CADDY_HTTPS_PORT=8443 CADDY_HTTP_SERVER_ADDRESS=http:// CADDY_HTTPS_SERVER_ADDRESS=https:// CADDY_LOG_FORMAT=console CADDY_LOG_OUTPUT=stdout CADDY_PHP_SERVER_OPTIONS= CADDY_SERVER_EXTRA_DIRECTIVES= CADDY_SERVER_ROOT=/var/www/html/public COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_HOME=/composer COMPOSER_MAX_PARALLEL_HTTP=24 DISABLE_DEFAULT_CONFIG=false FRANKEN_PHP_CONFIG= LOG_OUTPUT_LEVEL=info HEALTHCHECK_PATH=/healthcheck PHP_DATE_TIMEZONE=UTC PHP_DISPLAY_ERRORS=Off PHP_DISPLAY_STARTUP_ERRORS=Off PHP_ERROR_LOG=/dev/stderr PHP_ERROR_REPORTING=22527 PHP_MAX_EXECUTION_TIME=99 PHP_MAX_INPUT_TIME=-1 PHP_MAX_INPUT_VARS=1000 PHP_MEMORY_LIMIT=256M PHP_OPCACHE_ENABLE=0 PHP_OPCACHE_ENABLE_FILE_OVERRIDE=0 PHP_OPCACHE_FORCE_RESTART_TIMEOUT=180 PHP_OPCACHE_INTERNED_STRINGS_BUFFER=8 PHP_OPCACHE_JIT=off PHP_OPCACHE_JIT_BUFFER_SIZE=0 PHP_OPCACHE_MAX_ACCELERATED_FILES=10000 PHP_OPCACHE_MEMORY_CONSUMPTION=128 PHP_OPCACHE_REVALIDATE_FREQ=2 PHP_OPCACHE_SAVE_COMMENTS=1 PHP_OPCACHE_VALIDATE_TIMESTAMPS=1 PHP_OPEN_BASEDIR= PHP_POST_MAX_SIZE=100M PHP_REALPATH_CACHE_TTL=120 PHP_SESSION_COOKIE_SECURE=false PHP_UPLOAD_MAX_FILE_SIZE=100M PHP_ZEND_DETECT_UNICODE= PHP_ZEND_MULTIBYTE=Off SHOW_WELCOME_MESSAGE=true SSL_MODE=off SSL_CERTIFICATE_FILE=/etc/ssl/private/self-signed-web.crt SSL_PRIVATE_KEY_FILE=/etc/ssl/private/self-signed-web.key XDG_CONFIG_HOME=/config XDG_DATA_HOME=/data
COPY /usr/bin/composer /usr/bin/composer # buildkit
COPY /usr/local/bin/frankenphp /usr/local/bin/frankenphp # buildkit
COPY /usr/local/lib/libwatcher* /usr/local/lib/ # buildkit
COPY src/variations/frankenphp/etc/frankenphp/ /etc/frankenphp/ # buildkit
RUN |4 DEPENDENCY_PACKAGES_ALPINE=shadow libstdc++ DEPENDENCY_PACKAGES_DEBIAN=procps libstdc++6 zip DEPENDENCY_PHP_EXTENSIONS=opcache pcntl pdo_mysql pdo_pgsql redis zip REPOSITORY_BUILD_VERSION=v4.3.5-25366875788 /bin/sh -c docker-php-serversideup-dep-install-alpine "${DEPENDENCY_PACKAGES_ALPINE}"; docker-php-serversideup-dep-install-debian "${DEPENDENCY_PACKAGES_DEBIAN}"; if cat /etc/os-release | grep -q 'alpine'; then ldconfig /usr/local/lib; elif cat /etc/os-release | grep -q 'debian'; then ldconfig; else echo "Unsupported OS"; exit 1; fi; mkdir -p "${COMPOSER_HOME}" && chown -R www-data:www-data "${COMPOSER_HOME}" && echo "${REPOSITORY_BUILD_VERSION}" > /etc/serversideup-php-version && docker-php-serversideup-install-php-ext-installer; install-php-extensions ${DEPENDENCY_PHP_EXTENSIONS}; docker-php-serversideup-set-file-permissions --owner www-data:www-data --service frankenphp # buildkit
WORKDIR /var/www/html
USER www-data
EXPOSE map[2019/tcp:{} 8080/tcp:{} 8443/tcp:{} 8443/udp:{}]
ENTRYPOINT ["docker-php-serversideup-entrypoint"]
CMD ["frankenphp" "run" "--config" "/etc/frankenphp/Caddyfile" "--adapter" "caddyfile"]
HEALTHCHECK &{["CMD" "sh" "-c" "curl --insecure --silent --location --show-error --fail http://localhost:${CADDY_HTTP_PORT}${HEALTHCHECK_PATH} || exit 1"] "10s" "3s" "1m0s" "3s" '\x03'}
ARG POSTGRES_MAJOR=18
ENV POSTGRES_MAJOR=18 PATH=/usr/lib/postgresql/18/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
USER root
RUN |1 POSTGRES_MAJOR=18 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gnupg openssl bash gosu ffmpeg git unzip && install -d -m 0755 /etc/apt/keyrings && curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/keyrings/postgresql.gpg && echo "deb [signed-by=/etc/apt/keyrings/postgresql.gpg] https://apt.postgresql.org/pub/repos/apt $(. /etc/os-release && echo "$VERSION_CODENAME")-pgdg main" > /etc/apt/sources.list.d/pgdg.list && install -d -m 0755 /etc/postgresql-common && printf '%s\n' 'create_main_cluster = false' > /etc/postgresql-common/createcluster.conf && apt-get update && apt-get install -y --no-install-recommends postgresql-${POSTGRES_MAJOR} postgresql-client-${POSTGRES_MAJOR} postgresql-${POSTGRES_MAJOR}-pgvector && (pg_dropcluster --stop ${POSTGRES_MAJOR} main 2>/dev/null || true) && install -d -o postgres -g postgres -m 0700 /var/lib/postgresql/data && install -d -o postgres -g postgres -m 0755 /run/postgresql && install-php-extensions bcmath pdo_pgsql pgsql pdo_sqlite redis && rm -rf /var/lib/apt/lists/* # buildkit
USER www-data
WORKDIR /var/www/html
ENV APP_ENV=production LOG_CHANNEL=stderr PHP_OPCACHE_ENABLE=1 SSL_MODE=off CADDY_SERVER_EXTRA_DIRECTIVES=import /etc/frankenphp/clipbin-reverb.caddyfile AUTORUN_ENABLED=true AUTORUN_LARAVEL_CONFIG_CACHE=false AUTORUN_LARAVEL_STORAGE_LINK=true AUTORUN_LARAVEL_MIGRATION=false CLIPBIN_EMBEDDED_POSTGRES=true CLIPBIN_AUTO_MIGRATE=false CLIPBIN_CREATE_TEST_DATABASE=false PGDATA_MOUNT=/var/lib/postgresql/data PGDATA=/var/lib/postgresql/data/pgdata POSTGRES_DB=clipbin POSTGRES_USER=clipbin POSTGRES_PORT=5432 POSTGRES_LISTEN_ADDRESSES=127.0.0.1 POSTGRES_ALLOWED_CIDR=127.0.0.1/32 DB_HOST=127.0.0.1 DB_PORT=5432
COPY --chown=www-data:www-data composer.json composer.lock ./ # buildkit
RUN |1 POSTGRES_MAJOR=18 /bin/sh -c composer install --no-dev --prefer-dist --no-interaction --no-progress --no-autoloader --no-scripts # buildkit
COPY --chown=www-data:www-data . ./ # buildkit
COPY --chown=www-data:www-data /app/public/build ./public/build # buildkit
COPY --chmod=755 docker/clipbin-start /usr/local/bin/clipbin-start # buildkit
COPY --chmod=755 docker/clipbin-artisan /usr/local/bin/clipbin-artisan # buildkit
COPY docker/reverb.caddyfile /etc/frankenphp/clipbin-reverb.caddyfile # buildkit
RUN |1 POSTGRES_MAJOR=18 /bin/sh -c composer dump-autoload --optimize --no-scripts && php artisan package:discover --ansi && chmod -R ug+rwX storage bootstrap/cache # buildkit
USER root
EXPOSE map[8080/tcp:{}]
CMD ["clipbin-start"]

Labels

Key Value
org.opencontainers.image.authors Jay Rogers (@jaydrogers)
org.opencontainers.image.description Supercharge your PHP experience. Based off the official PHP images, serversideup/php includes pre-configured PHP extensions and settings for enhanced performance and security. Optimized for Laravel and WordPress.
org.opencontainers.image.documentation https://serversideup.net/open-source/docker-php/docs/
org.opencontainers.image.licenses GPL-3.0-or-later
org.opencontainers.image.source https://github.com/serversideup/docker-php
org.opencontainers.image.title serversideup/php (frankenphp)
org.opencontainers.image.url https://serversideup.net/open-source/docker-php/
org.opencontainers.image.vendor ServerSideUp
org.opencontainers.image.version v4.3.5-25366875788
Details
Container
2026-05-08 16:59:48 +01:00
2
OCI / Docker
Versions (17) View all
latest 2026-05-10
05aaa59 2026-05-08
348c988 2026-05-08
main 2026-05-08
6a8f615 2026-05-08