Skip to content

Update Docker image build process and add user-friendly landing page#12

Merged
byjg merged 3 commits intomasterfrom
claude/incomplete-description-01ViEV9LqsVMequN6sMDrvZF
Nov 14, 2025
Merged

Update Docker image build process and add user-friendly landing page#12
byjg merged 3 commits intomasterfrom
claude/incomplete-description-01ViEV9LqsVMequN6sMDrvZF

Conversation

@byjg
Copy link
Copy Markdown
Owner

@byjg byjg commented Nov 14, 2025

# Changes introduced

- Refactored build scripts to process `index.html` with build-time variables for dynamic content.
- Created a responsive and modern `index.html` landing page that includes:
  - Overview of features and configuration options.
  - Detailed PHP extension lists and environment variable usage examples.
  - Quick start examples with documentation links.
- Adjusted Nginx and Apache templates for correct deployment.
- Upgraded dependencies in `requirements.txt` for enhanced support and compatibility.

# Notes

This pull request improves user experience by offering immediate access to configuration guidance and PHP extension details through a user-friendly landing page upon container deployment.

claude and others added 3 commits November 14, 2025 20:54
This commit introduces a comprehensive, modern HTML landing page that showcases the features and configuration options of the ByJG PHP Docker images.

Changes:
- Created assets/index.html with responsive design featuring:
  - Overview of key features (lightweight, 45+ extensions, multi-architecture)
  - Complete list of pre-installed PHP extensions
  - Documentation of all environment variables with usage examples
  - Quick start examples for common scenarios
  - Link to phpinfo() page for detailed PHP configuration
  - Links to full documentation and GitHub repository

- Updated generator/__init__.py to copy index.html in build process:
  - build_fpm_apache(): Copy index.html to Apache web root
  - build_fpm_nginx(): Copy index.html to Nginx web root
  - build_nginx(): Copy index.html to Nginx web root

- Modified templates to place index.html in correct web root:
  - php-fpm-apache.j2: /var/www/localhost/htdocs/
  - php-fpm-nginx.j2: /var/www/html/
  - php-nginx.j2: /var/www/html/

The landing page provides users with immediate access to documentation and configuration guidance when they first run their containers.
Refactored build scripts to process `index.html` with build-time variables for dynamic content. Updated `index.html` with enhanced styling, examples, and placeholders. Adjusted Nginx and Apache templates to replace `cp` with `mv` for `index.html`. Upgraded dependencies in `requirements.txt`.
Refactored build scripts to process `index.html` with build-time variables for dynamic content. Updated `index.html` with enhanced styling, examples, and placeholders. Adjusted Nginx and Apache templates to replace `cp` with `mv` for `index.html`. Upgraded dependencies in `requirements.txt`.
@byjg byjg merged commit 4ff59c4 into master Nov 14, 2025
10 checks passed
@byjg byjg deleted the claude/incomplete-description-01ViEV9LqsVMequN6sMDrvZF branch November 14, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants