Lightweight php CLI based on alpine with frequents modules used by BiiG
538
Lightweight php CLI based on alpine with frequent module used by BiiG
This image contain only the php CLI interpreter
FROM lw-php:latest
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
CMD [ "php", "./your-script.php" ]
Then, run the commands to build and run the Docker image:
$ docker build -t my-php-app .
$ docker run -it --rm --name my-running-app my-php-app
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp lw-php:latest php your-script.php
$ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp lw-php:latest sh
Content type
Image
Digest
Size
27 MB
Last updated
about 9 years ago
docker pull biig/lightweight-php