Git Product home page Git Product logo

php's Introduction

php Docker Pulls Docker Stars Build Status Docker Automated build

What is PHP?

PHP is a server-side scripting language designed for web development, but which can also be used as a general-purpose programming language. PHP can be added to straight HTML or it can be used with a variety of templating engines and web frameworks. PHP code is usually processed by an interpreter, which is either implemented as a native module on the web-server or as a common gateway interface (CGI).

Supported tags and respective Dockerfile links

PHP 7.4

  • 7.4.0-cli-alpine3.9, 7.4-cli-alpine3.9, 7-cli-alpine3.9, cli-alpine3.9, 7.4.0-alpine3.9, 7.4-alpine3.9, 7-alpine3.9, alpine3.9, 7.4.0-cli, 7.4-cli, 7-cli, cli, 7.4.0, 7.4, 7, latest (7.4/alpine/3.9/cli/Dockerfile) MicroBadger Size (7.4-alpine3.9) MicroBadger Layers (7.4-alpine3.9)
  • 7.4.0-fpm-alpine3.9, 7.4-fpm-alpine3.9, 7-fpm-alpine3.9, fpm-alpine3.9, 7.4.0-fpm, 7.4-fpm, 7-fpm, fpm (7.4/alpine/3.9/fpm/Dockerfile) MicroBadger Size (7.4-fpm-alpine3.9) MicroBadger Layers (7.4-fpm-alpine3.9)
  • 7.4.0-roadrunner-alpine3.9, 7.4-roadrunner-alpine3.9, 7-roadrunner-alpine3.9, roadrunner-alpine3.9, 7.4.0-roadrunner, 7.4-roadrunner, 7-roadrunner, roadrunner (7.4/alpine/3.9/roadrunner/Dockerfile) MicroBadger Size (7.4-roadrunner-alpine3.9) MicroBadger Layers (7.4-roadrunner-alpine3.9)
  • 7.4.0-aio-alpine3.9, 7.4-aio-alpine3.9, 7-aio-alpine3.9, aio-alpine3.9, 7.4.0-aio, 7.4-aio, 7-aio, aio (7.4/alpine/3.9/aio/Dockerfile) MicroBadger Size (7.4-aio-alpine3.9) MicroBadger Layers (7.4-aio-alpine3.9)

PHP 7.3

PHP 7.2

PHP 7.1

Image Variants

The php images come in many flavors, each designed for a specific use case.

php:<version>-cli

This variant contains the PHP CLI tool with default mods. If you need a web server, this is probably not the image you are looking for. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as a base from which to build other images.

php:<version>-fpm

This variant contains PHP-FPM, which is a FastCGI implementation for PHP. See the PHP-FPM website for more information about PHP-FPM.

In order to use this image variant, some kind of reverse proxy (such as NGINX, Apache, or other tool which speaks the FastCGI protocol) will be required.

Some potentially helpful resources:

php:<version>-alpine

This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.

This variant is highly recommended when final image size being as small as possible is desired. The main caveat to note is that it does use musl libc instead of glibc and friends, so certain software might run into issues depending on the depth of their libc requirements. However, most software doesn't have an issue with this, so this variant is usually a very safe choice. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.

To minimize image size, it's uncommon for additional related tools (such as git or bash) to be included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the alpine image description for examples of how to install packages if you are unfamiliar).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.