File tree Expand file tree Collapse file tree 3 files changed +28
-17
lines changed
Expand file tree Collapse file tree 3 files changed +28
-17
lines changed Original file line number Diff line number Diff line change 4242 - name : Build and push
4343 uses : docker/build-push-action@v6
4444 with :
45- platforms : linux/amd64,linux/arm64
45+ # platforms: linux/amd64,linux/arm64
4646 builder : ${{ steps.buildx.outputs.name }}
4747 file : ${{ matrix.php-version }}/Dockerfile
4848 tags : ${{ steps.meta.outputs.tags }}
Original file line number Diff line number Diff line change 1- FROM serversideup/php:8.4-fpm-nginx-alpine
1+ FROM serversideup/php:beta- 8.4-fpm-nginx-alpine
22
33COPY --chmod=755 common/etc/entrypoint.d /etc/entrypoint.d
44COPY --chmod=755 --chown=www-data:www-data common/etc/nginx /etc/nginx
@@ -25,10 +25,7 @@ ENV PHP_FPM_PM_MAX_SPARE_SERVERS=3
2525ENV AUTORUN_ENABLED=true
2626ENV AUTORUN_LARAVEL_MIGRATION=true
2727ENV AUTORUN_LARAVEL_STORAGE_LINK=true
28- ENV AUTORUN_LARAVEL_CONFIG_CACHE=true
29- ENV AUTORUN_LARAVEL_EVENT_CACHE=true
30- ENV AUTORUN_LARAVEL_ROUTE_CACHE=true
31- ENV AUTORUN_LARAVEL_VIEW_CACHE=true
28+ ENV AUTORUN_LARAVEL_OPTIMIZE=true
3229ENV AUTORUN_LARAVEL_FILAMENT=true
3330
3431ENV HEALTHCHECK_PATH=/up
Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ if [ "$SHOW_WELCOME_MESSAGE" = "false" ] || [ "$LOG_OUTPUT_LEVEL" = "off" ] || [
44 echo " 👉 $0 : Container info was display was skipped."
55 fi
66 # Skip the rest of the script
7- return 0
7+ exit 0
88fi
99
10+ # Get OPcache status
1011PHP_OPCACHE_STATUS=$( php -r ' echo ini_get("opcache.enable");' )
1112
1213if [ " $PHP_OPCACHE_STATUS " = " 1" ]; then
1516 PHP_OPCACHE_MESSAGE=" ❌ Disabled"
1617fi
1718
19+ # Get memory limits
20+ MEMORY_LIMIT=$( php -r ' echo ini_get("memory_limit");' )
21+ UPLOAD_LIMIT=$( php -r ' echo ini_get("upload_max_filesize");' )
22+
1823echo '
1924-------------------------------------
2025ℹ️ Container Information
21- -------------------------------------'
22- echo "
23- OS: $( . /etc/os-release; echo " ${PRETTY_NAME} " )
24- Docker user: $( whoami)
25- Docker uid: $( id -u)
26- Docker gid: $( id -g)
27- OPcache: $PHP_OPCACHE_MESSAGE
28- PHP Version: $( php -r ' echo phpversion();' )
29- Image Version: $( cat /etc/serversideup-php-version)
30- "
26+ -------------------------------------
27+ 📦 Versions
28+ • Image: ' " $( cat /etc/serversideup-php-version) " '
29+ • PHP: ' " $( php -r ' echo phpversion();' ) " '
30+ • OS: ' " $( . /etc/os-release; echo " ${PRETTY_NAME} " ) " '
31+
32+ 👤 Container User
33+ • User: ' " $( whoami) " '
34+ • UID: ' " $( id -u) " '
35+ • GID: ' " $( id -g) " '
36+
37+ ⚡ Performance
38+ • OPcache: ' " $PHP_OPCACHE_MESSAGE " '
39+ • Memory Limit: ' " $MEMORY_LIMIT " '
40+ • Upload Limit: ' " $UPLOAD_LIMIT " '
41+
42+ 🔄 Runtime
43+ • Docker CMD: ' " $DOCKER_CMD " '
44+ '
3145
3246if [ " $PHP_OPCACHE_STATUS " = " 0" ]; then
3347 echo " 👉 [NOTICE]: Improve PHP performance by setting PHP_OPCACHE_ENABLE=1 (recommended for production)."
You can’t perform that action at this time.
0 commit comments