Public | Automated Build

Last pushed: 7 days ago
Short Description
Docker PHP Images
Full Description

Tags

7.1-apache

Docker image with apache webserver based on alpine linux.

Usage

Mount app source code directory to /app, and share any host port to container 80

Your app must have an "public" folder, located at root.

Example:

git clone https://github.com/panique/mini /tmp/mini
cd /tmp/mini
docker run -v $PWD:/app -p 8080:80 oneeg/php:7.1-apache

7.1-build

Build PHP application to a tar artifact.

Usage

The app source code must be in the container's /source directory. The artifact will be built to the file /target/app.tar in the container.

Using Dockerfile:

Create a Dockerfile FROM this image and COPY the application source code to the /source directory:

FROM oneeg/php:7.1-build
COPY app /source

Then build and run mounting target directory to /target:

docker build . -t build
docker run -v $PWD:/target build
ls app.tar

Simple run command:

Mount app source code directory to /source and target directory to /target.

git clone https://github.com/panique/mini /tmp/mini
cd /tmp/mini
docker run -v $PWD:/source -v $PWD:/target oneeg/php:7.1-build
ls app.tar
Docker Pull Command
Owner
oneeg
Source Repository

Comments (0)