Cybercinch Solutions
finchkeep (latest)
Published 2025-10-23 22:43:54 +13:00 by cibot
Installation
docker pull hub.cybercinch.nz/cybercinch/finchkeep:latestsha256:7b88823f311ed96d60d116a24b70ce9e6ec87e4c0df10a191c6059f767b574d9
Images
| Digest | OS / Arch | Size |
|---|---|---|
| cefda542b3 | linux/amd64 | 342 MiB |
| 1596bc110c | linux/arm64 | 328 MiB |
Image Layers ( linux/amd64)
| ADD alpine-minirootfs-3.22.1-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c |
| RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit |
| RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # 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.10 |
| ENV PHP_URL=https://www.php.net/distributions/php-8.4.10.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.10.tar.xz.asc |
| ENV PHP_SHA256=14983a9ef8800e6bc2d920739fd386054402f7976ca9cd7f711509496f0d2632 |
| RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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; apk del --no-network .fetch-deps # buildkit |
| COPY docker-php-source /usr/local/bin/ # buildkit |
| RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; ./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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; 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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; 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"] |
| WORKDIR /var/www/html |
| RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit |
| STOPSIGNAL SIGQUIT |
| EXPOSE map[9000/tcp:{}] |
| CMD ["php-fpm"] |
| RUN /bin/sh -c apk add --no-cache nginx supervisor tzdata curl zip unzip git oniguruma-dev libpng-dev libjpeg-turbo-dev freetype-dev libzip-dev curl-dev icu-dev imagemagick-dev redis sqlite sqlite-dev mysql-client postgresql-dev postgresql-client && rm -rf /var/cache/apk/* # buildkit |
| RUN /bin/sh -c docker-php-ext-install -j$(nproc) pdo_mysql pdo_sqlite pdo_pgsql bcmath zip intl opcache # buildkit |
| RUN /bin/sh -c docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install -j$(nproc) gd # buildkit |
| RUN /bin/sh -c apk add --no-cache --virtual .build-deps $PHPIZE_DEPS && pecl install redis && docker-php-ext-enable redis && apk del .build-deps # buildkit |
| RUN /bin/sh -c apk add --no-cache --virtual .imagick-deps $PHPIZE_DEPS imagemagick-dev libtool && pecl install imagick && docker-php-ext-enable imagick && apk del .imagick-deps # buildkit |
| RUN /bin/sh -c echo "opcache.enable=1" >> /usr/local/etc/php/conf.d/opcache.ini && echo "opcache.memory_consumption=128" >> /usr/local/etc/php/conf.d/opcache.ini && echo "opcache.interned_strings_buffer=8" >> /usr/local/etc/php/conf.d/opcache.ini && echo "opcache.max_accelerated_files=4000" >> /usr/local/etc/php/conf.d/opcache.ini && echo "opcache.revalidate_freq=2" >> /usr/local/etc/php/conf.d/opcache.ini && echo "opcache.fast_shutdown=1" >> /usr/local/etc/php/conf.d/opcache.ini # buildkit |
| RUN /bin/sh -c echo "memory_limit=256M" >> /usr/local/etc/php/conf.d/custom.ini && echo "upload_max_filesize=20M" >> /usr/local/etc/php/conf.d/custom.ini && echo "post_max_size=20M" >> /usr/local/etc/php/conf.d/custom.ini && echo "max_execution_time=300" >> /usr/local/etc/php/conf.d/custom.ini # buildkit |
| COPY /usr/bin/composer /usr/bin/composer # buildkit |
| RUN /bin/sh -c addgroup -g 1001 -S appgroup && adduser -u 1001 -S appuser -G appgroup # buildkit |
| RUN /bin/sh -c mkdir -p /etc/supervisor/conf.d && echo '[supervisord]' > /etc/supervisor/supervisord.conf && echo 'nodaemon=true' >> /etc/supervisor/supervisord.conf && echo 'user=root' >> /etc/supervisor/supervisord.conf && echo 'logfile=/var/log/supervisor/supervisord.log' >> /etc/supervisor/supervisord.conf && echo 'pidfile=/var/run/supervisord.pid' >> /etc/supervisor/supervisord.conf && echo 'childlogdir=/var/log/supervisor/' >> /etc/supervisor/supervisord.conf && echo '' >> /etc/supervisor/supervisord.conf && echo '[unix_http_server]' >> /etc/supervisor/supervisord.conf && echo 'file=/var/run/supervisor.sock' >> /etc/supervisor/supervisord.conf && echo 'chmod=0700' >> /etc/supervisor/supervisord.conf && echo '' >> /etc/supervisor/supervisord.conf && echo '[supervisorctl]' >> /etc/supervisor/supervisord.conf && echo 'serverurl=unix:///var/run/supervisor.sock' >> /etc/supervisor/supervisord.conf && echo '' >> /etc/supervisor/supervisord.conf && echo '[rpcinterface:supervisor]' >> /etc/supervisor/supervisord.conf && echo 'supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface' >> /etc/supervisor/supervisord.conf && echo '' >> /etc/supervisor/supervisord.conf && echo '[include]' >> /etc/supervisor/supervisord.conf && echo 'files = /etc/supervisor/conf.d/*.conf' >> /etc/supervisor/supervisord.conf # buildkit |
| ARG APP_VERSION=f8f50a4 |
| ARG APP_BUILD_DATE=2025-10-23T09:43:15Z |
| ARG APP_GIT_COMMIT=f8f50a4 |
| WORKDIR /var/www/html |
| COPY --chown=appuser:appgroup composer.json composer.lock ./ # buildkit |
| ENV COMPOSER_ALLOW_SUPERUSER=1 |
| RUN |3 APP_VERSION=f8f50a4 APP_BUILD_DATE=2025-10-23T09:43:15Z APP_GIT_COMMIT=f8f50a4 /bin/sh -c composer install --optimize-autoloader --no-dev --no-interaction --no-scripts # buildkit |
| COPY --chown=appuser:appgroup app/ ./app/ # buildkit |
| COPY --chown=appuser:appgroup bootstrap/ ./bootstrap/ # buildkit |
| COPY --chown=appuser:appgroup config/ ./config/ # buildkit |
| COPY --chown=appuser:appgroup database/ ./database/ # buildkit |
| COPY --chown=appuser:appgroup public/ ./public/ # buildkit |
| COPY --chown=appuser:appgroup resources/ ./resources/ # buildkit |
| COPY --chown=appuser:appgroup routes/ ./routes/ # buildkit |
| COPY --chown=appuser:appgroup storage/ ./storage/ # buildkit |
| COPY --chown=appuser:appgroup artisan .env.example ./ # buildkit |
| COPY --chown=appuser:appgroup /app/public/build ./public/build # buildkit |
| RUN |3 APP_VERSION=f8f50a4 APP_BUILD_DATE=2025-10-23T09:43:15Z APP_GIT_COMMIT=f8f50a4 /bin/sh -c echo "{ \"version\": \"${APP_VERSION}\", \"build_date\": \"${APP_BUILD_DATE}\", \"git_commit\": \"${APP_GIT_COMMIT}\" }" > version.json && chown appuser:appgroup version.json # buildkit |
| RUN |3 APP_VERSION=f8f50a4 APP_BUILD_DATE=2025-10-23T09:43:15Z APP_GIT_COMMIT=f8f50a4 /bin/sh -c mkdir -p storage/logs storage/framework/cache storage/framework/sessions storage/framework/views && mkdir -p storage/app/private storage/app/public && mkdir -p bootstrap/cache && chown -R appuser:appgroup storage bootstrap/cache && chmod -R 775 storage bootstrap/cache # buildkit |
| RUN |3 APP_VERSION=f8f50a4 APP_BUILD_DATE=2025-10-23T09:43:15Z APP_GIT_COMMIT=f8f50a4 /bin/sh -c composer dump-autoload --optimize --no-scripts # buildkit |
| COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf # buildkit |
| COPY docker/php/php-fpm.conf /usr/local/etc/php-fpm.d/zzz-custom.conf # buildkit |
| COPY docker/supervisor/laravel.conf /etc/supervisor/conf.d/laravel.conf # buildkit |
| COPY docker-entrypoint.sh /docker-entrypoint.sh # buildkit |
| RUN |3 APP_VERSION=f8f50a4 APP_BUILD_DATE=2025-10-23T09:43:15Z APP_GIT_COMMIT=f8f50a4 /bin/sh -c chmod +x /docker-entrypoint.sh # buildkit |
| RUN |3 APP_VERSION=f8f50a4 APP_BUILD_DATE=2025-10-23T09:43:15Z APP_GIT_COMMIT=f8f50a4 /bin/sh -c mkdir -p /var/log/nginx /var/cache/nginx && chown -R appuser:appgroup /var/log/nginx /var/cache/nginx && chown -R appuser:appgroup /var/lib/nginx # buildkit |
| RUN |3 APP_VERSION=f8f50a4 APP_BUILD_DATE=2025-10-23T09:43:15Z APP_GIT_COMMIT=f8f50a4 /bin/sh -c mkdir -p /var/log/supervisor /var/run/supervisor && chown -R appuser:appgroup /var/log/supervisor /var/run/supervisor && mkdir -p /var/run/php && chown -R appuser:appgroup /var/run/php # buildkit |
| HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost/api/health-check || exit 1"] "30s" "3s" "5s" "0s" '\x03'} |
| ENV CONTAINER_ROLE=web |
| ENV RUN_MIGRATIONS=false |
| ENV ENABLE_WORKERS=false |
| ENV WORKER_COUNT=1 |
| ENV ENABLE_SCHEDULER=false |
| ENV ENABLE_NGINX=true |
| ENV ENABLE_HORIZON=false |
| ENV APP_ENV=production |
| ENV LOG_CHANNEL=stdout |
| ENV APP_VERSION=f8f50a4 |
| ENV APP_BUILD_DATE=2025-10-23T09:43:15Z |
| ENV APP_GIT_COMMIT=f8f50a4 |
| EXPOSE &{[{{246 0} {246 0}}] 0xc01051a8c0} |
| ENTRYPOINT ["/docker-entrypoint.sh"] |
| CMD ["supervisord" "-c" "/etc/supervisor/supervisord.conf" "-n"] |