Sign inSign up

burnett0/alpine-php7

By burnett0

Updated over 5 years ago

Docker Image for developing PHP-7 applications using Alpine Linux, PHP 7.3 and Composer.

Image
0

10K+

burnett0/alpine-php7 repository overview

alpine-php7 alpine-php7

Docker Image for developing PHP-7 applications using Alpine Linux, PHP 7.4 and Composer.

Features:

+ PHP 7.4, MySQL (PDO), SQLite (PDO), Composer, Curl, PHP 7 extensions

Install

Use with docker-compose:

version: "3"
services:
  site:
    image: "burnett0/alpine-php7"
    command: "php -S 0.0.0.0:80 -t /src"
    volumes:
      - ./src:/src
    ports:
      - "80:80"
    tty: true

docker-compose up

Usage

All project files are located in your source folder.
In the docker-compose example above, it is src/*.

The built-in PHP 7 webserver will serve the content of that folder that can be accessed on port 80.

Example: http://YOUR-DOCKER-IP-OR-HOST

You can change the path, port and other things in the docker-compose.yml file.

Tag summary

Content type

Image

Digest

Size

32.5 MB

Last updated

over 5 years ago

docker pull burnett0/alpine-php7