Building a Custom Alpine-Based LNP Stack Docker Image
To create a lightweight Docker image based on Alpine Linux that includes Nginx and PHP-FPM (an LNP stack), start by defining a base PHP layer. For compatibility with legacy applications, use PHP 5.6 on Alpine 3.3: # php5.dockerfile FROM alpine:3.3 ENV TIMEZONE=Asia/Shanghai \ PHP_MEMORY_LIMIT=512M \...