Skip to content

grmvoid/docker-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Docker Container Image

A lightweight PHP container image based on Alpine Linux, building with the Clang and LLVM. It supports multiple architectures and is ideal for both development and production environments.

Quick reference

Usage

Pull the Image

To get started, pull the specify a version PHP image:

  docker pull grmvoid/php:8.4.4

Running a Container

You can run the PHP container interactively using the following command:

  docker run -it --name php -v /path/to/app:app grmvoid/php:8.4.4

Running a PHP Script

To execute a PHP script inside the container:

  docker run --rm -v $(pwd):/app -w /app grmvoid/php:8.4.4 php script.php

Using as a Base Image

You can extend this image in your Dockerfile:

FROM grmvoid/php:8.4.4
WORKDIR /app
COPY . .
CMD ["php", "index.php"]

Environment Variables

The php image uses several environment variables which are easy to miss.

Variable Default Value Description
PHPIZE_DEPS Dependencies required for PHP extensions

LICENSE

This repository follows the PHP License. Individual dependencies may have their own licensing terms.

Additionally, the contents of this repository are licensed under the MIT License.

About

🐳 Docker image for PHP

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy