AlpineLinux with NGINX and PHP7 on x86_64 and arm
Dockerfile
links
Supported tags and respective latest
(Dockerfile) (x86_64)extended
(Dockerfile) (x86_64)arm
(Dockerfile) (ARM / Raspberry Pi)arm-extended
(Dockerfile) (ARM / Raspberry Pi)
About these images:
- based on official Images: https://hub.docker.com/_/alpine / https://github.com/alpinelinux/docker-alpine
- AlpineLinux with NGINX and PHP7 on x86_64 and ARM, see https://wiki.alpinelinux.org/wiki/Nginx_with_PHP#PHP7_Installation for more information or to install more PHP packages!
How to use this image (example)
docker run --name alpine-nginx-php-container -d -p 80:80 -v ${PWD}/html:/var/www/html -e PHP_ERRORS=1 -e PHP_UPLOAD_MAX_FILESIZE=250 tobi312/alpine-nginx-php:latest
An own Dockerfile?, then here an example with install git and copy own entrypoint-file(s):
echo -e "FROM tobi312/alpine-nginx-php:latest\nRUN apk --no-cache add git\nCOPY *.sh /entrypoint.d/" > Dockerfile
Environment Variables
TZ
(set timezone, example: "Europe/Berlin")PHP_ERRORS
(set 1 to enable)PHP_MEM_LIMIT
(set Value in MB, example: 128)PHP_POST_MAX_SIZE
(set Value in MB, example: 250)PHP_UPLOAD_MAX_FILESIZE
(set Value in MB, example: 250)PHP_MAX_FILE_UPLOADS
(set number, example: 20)CREATE_PHPINFO_FILE
(set 1 to enable)