A Arch Linux is the base image used here kindly make sure your familiar with it.
1.5K
A security-hardened PHP Docker image collection, forked from nubs/php-minimal with enhanced security features and modern Docker practices.
This Docker image provides a security-focused PHP environment with carefully configured restrictions and optimizations. It's designed for running PHP applications in production with enhanced security controls.
system, shell_exec, passthru, proc_open, popen, ini_set# Pull the latest version
docker pull anubhavgicpl/phponsteriods
# Run with basic configuration
docker run -d --security-opt=no-new-privileges \
--cpu-quota=50000 \
--memory=128m \
anubhavgicpl/phponsteriods
version: '3.8'
services:
php:
image: anubhavgicpl/phponsteriods:latest
security_opt:
- no-new-privileges
deploy:
resources:
limits:
cpus: '0.50'
memory: 128M
volumes:
- ./app:/var/www/html:ro
You can override the default security settings by mounting your own php.ini:
docker run -v ./custom-php.ini:/usr/local/etc/php/php.ini:ro anubhavgicpl/phponsteriods
The container runs as non-root (UID 1000). When using volume mounts, ensure proper permissions:
# Set correct permissions on host
chown -R 1000:1000 ./app
chmod -R g+w ./app
latest: Current stable versionx.y.z: Specific version releasesIf you're migrating from nubs/php-minimal, note these changes:
For security issues, please email [[email protected]].
This project is licensed under the MIT License - see the LICENSE file for details.
Original work by nubs/php-minimal
Content type
Image
Digest
sha256:63e02d5ac…
Size
629.9 MB
Last updated
almost 2 years ago
docker pull anubhavgicpl/phponsteriods:7.0.15