GithubHelp home page GithubHelp logo

adrianbsb / docker-php-dev Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 59 KB

Docker PHP Development image build script

Home Page: https://hub.docker.com/r/oak3docker/phpdev/

License: MIT License

Dockerfile 32.48% Shell 52.20% PHP 15.32%
docker-php-fpm docker-phpdev docker-php-nginx docker-php-image

docker-php-dev's Introduction

Docker Nginx - PHP-FPM Image Builder

Run ./build.sh to build your images.

Parameters:

  • name:tag the name and tag to use for the resulting docker image

Options:

  • --env env builds the image with configuration stored in config-{env} folder
  • --php version selects php version (builds from the {version}-fpm-alpine base).
  • --customize dir the name of the folder under custom to build from the resulting image. A Dockerfile should be present in custom/{dir}. See example folder for a starter template. By default all folders under custom will be built.

The script will automatically build your custom images by placing your Dockerfiles in the custom folder. Your image will have the name of the folder it is placed in, tagged with latest. E.g. for the example folder the image will be built as example:latest.

Example:

./build.sh phpdev:base --env dev --php 7.2 --customize phpdev

Then you can start your container with the built image:

docker run -d -p 8007:80 --name dev-container phpdev:latest

Available PHP versions:

  • 7.2.*
  • 7.1 (default)
  • 7.0
  • 5.6

For a complete list see https://store.docker.com/images/php

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.