Sign inSign up

burnett0/alpine-php8-nodejs

By burnett0

Updated almost 4 years ago

Image
0

1.2K

burnett0/alpine-php8-nodejs repository overview

alpine-php8-nodejs alpine-php8-nodejs

Docker Image for developing PHP-8 applications using Alpine Linux, PHP 8.0.3-r0, Composer, node.js, npm and yarn.

Features:

+ PHP 8.0.3-r0, MySQL (PDO), SQLite (PDO), Composer, Curl, PHP 8 extensions, node.js, npm, yarn

Install

Use with docker-compose:

version: "3"
services:
  site:
    image: "burnett0/alpine-php8-nodejs"
    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 8 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:3ae64671d

Size

41.2 MB

Last updated

almost 4 years ago

docker pull burnett0/alpine-php8-nodejs