# docker-php **Repository Path**: andals/docker-php ## Basic Information - **Project Name**: docker-php - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2016-03-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Init ``` git clone git@gitee.com:andals/docker-php.git php cd php prjHome=`pwd` phpVer=7.1.9 ``` # Build pkg ``` docker run -i -t -v $prjHome/:/build --name=build-php-${phpVer} andals/centos:7 /bin/bash /build/script/build_pkg_php.sh /build/script/build_pkg_module.sh ``` # Build image ``` docker build -t andals/php:${phpVer} ./ ``` # Run container ``` docker run -d --name=php-${phpVer} --volumes-from=data-home --net=host andals/php:${phpVer} ```