Public | Automated Build

Last pushed: a year ago
Short Description
PHP7 CLI image for development, based on a custom Alpine Linux environment with su-exec.
Full Description

Docker - PHP 7 image

A Docker PHP7 CLI image for development, based on a custom Alpine Linux environment with su-exec integrated.

Please see eviweb/base-image README.md for more details

Health status


Usage

Simple use

Run the command docker run --rm eviweb/php7-dev [PHP CLI options or agruments].
ie. docker run --rm eviweb/php7-dev -v displays the current PHP version or docker run --rm eviweb/php7-dev ./my_script.php runs ./my_script.php

Change the entrypoint

Sometimes it is useful to bypass the default entrypoint, this can be done like this: docker run --rm --entrypoint=entrypoint eviweb/php7-dev [Command].
ie. docker run --rm -ti --entrypoint=entrypoint eviweb/php7-dev bash to enter an interactive bash session

Please note the --entrypoint=entrypoint where the value entrypoint permits to run the command using su-exec

Run as different user

By default the php command is run by an internal user with the default uid=9001.
To run the command with a different uid, use the docker environment option and set the variable LOCAL_USER_UID with the required value.
ie. docker run --rm -e LOCAL_USER_UID=1000 eviweb/php7-dev -r 'echo getmyuid();' displays the current uid using PHP.

For more details, please refer to Run as different user

Alpine Installed Packages

Please refer to Alpine Packages

Current PHP Version

Please refer to PHP Version

Please note that Docker images are tagged with the provided PHP version

Build

To build this image, run make from the root of this project.

License

This project is licensed under the terms of the MIT License

Docker Pull Command
Owner
eviweb
Source Repository

Comments (0)