Sign inSign up

burnett0/alpine-php85

By burnett0

Updated 10 months ago

Docker Image for developing PHP applications using Alpine Linux Edge, PHP 8.5 and Composer.

Image
Languages & frameworks
Developer tools
Operating systems
0

389

burnett0/alpine-php85 repository overview

alpine-php85 alpine-php85

Docker Image for developing PHP applications using Alpine Linux Edge, PHP 8.5 and Composer 2.

Features:

+ PHP 8.5, MySQL (PDO), SQLite (PDO), Mysqli Composer 2, Curl, PHP 8.5 extensions, XDEBUG

Extensions (from base image)

  • common
  • cli
  • pdo
  • pdo_mysql
  • mysqli
  • iconv
  • mbstring
  • phar
  • composer 2

Extensions (from image)

  • tokenizer
  • zip
  • curl
  • dom
  • xml
  • xmlwriter
  • ctype
  • intl
  • pecl-uuid
  • ftp
  • bcmath
  • pecl-memcached
  • gmp
  • pdo_sqlite
  • sodium
  • sysvsem
  • pcntl
  • fileinfo
  • posix
  • gd
  • soap
  • pecl-xdebug
  • simplexml
  • json
  • pecl-apcu

Install

Use with docker-compose:

version: "3"
services:
  site:
    image: "burnett0/alpine-php85"
    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 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

sha256:c0a9f04b0

Size

35.3 MB

Last updated

10 months ago

docker pull burnett0/alpine-php85