Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
php-version:
- 8.4
- 8.5
- 8.6

steps:
- name: Checkout
Expand Down
71 changes: 71 additions & 0 deletions 8.6/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
FROM serversideup/php:8.6-fpm-nginx-alpine

COPY --chmod=755 common/etc/entrypoint.d /etc/entrypoint.d
COPY --chmod=755 common/etc/s6-overlay /etc/s6-overlay
COPY --chmod=755 --chown=www-data:www-data common/etc/nginx /etc/nginx
COPY --chmod=755 common/usr/local/bin /usr/local/bin

# PHP limits
ENV PHP_MEMORY_LIMIT=256M
ENV PHP_POST_MAX_SIZE=100M
ENV PHP_UPLOAD_MAX_FILE_SIZE=${PHP_POST_MAX_SIZE}

# OPcache settings
ENV PHP_OPCACHE_ENABLE=1
ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS=0

# PHP-FPM settings
ENV PHP_FPM_PM_CONTROL=ondemand
ENV PHP_FPM_PM_MAX_CHILDREN=20
ENV PHP_FPM_PM_START_SERVERS=2
ENV PHP_FPM_PM_MIN_SPARE_SERVERS=1
ENV PHP_FPM_PM_MAX_SPARE_SERVERS=3

# Laravel settings
ENV AUTORUN_ENABLED=true
ENV AUTORUN_LARAVEL_MIGRATION=true
ENV AUTORUN_LARAVEL_STORAGE_LINK=true
ENV AUTORUN_LARAVEL_OPTIMIZE=true
ENV AUTORUN_LARAVEL_FILAMENT=true

ENV HEALTHCHECK_PATH=/up

# Composer settings
ENV COMPOSER_ALLOW_SUPERUSER=0
ENV COMPOSER_CACHE_DIR=/dev/null
ENV COMPOSER_FUND=0
ENV COMPOSER_HOME=/tmp
ENV COMPOSER_NO_DEV=1
ENV COMPOSER_NO_INTERACTION=1

# App defaults
ENV LOG_CHANNEL=stderr

# Schedule settings
ENV SCHEDULE_ENABLED=true

# Queue settings
ENV QUEUE_ENABLED=false
ENV QUEUE_NAME=default
ENV QUEUE_MAX_JOBS=50
ENV QUEUE_SLEEP=30
ENV QUEUE_REST=1
ENV QUEUE_TIMEOUT=600
ENV QUEUE_TRIES=3

# Switch to root so we can do root things
USER root

# Install additional PHP extensions
RUN set -ex; \
install-php-extensions \
event \
excimer \
exif \
gd \
intl;

# Drop back to our unprivileged user
USER www-data

EXPOSE 8080 8443
Loading