Skip to content

xuad/dockerfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Default dockerfiles

PHP-CLI-DEV Docker container

  1. Check your current local ip address with:
ifconfig
  1. Set environment variables
echo 'export DOCKER_ENV_USER_ID="$(id -u)"' >> ${HOME}/.bashrc && \
echo 'export DOCKER_ENV_GROUP_ID="$(id -g)"' >> ${HOME}/.bashrc && \
echo 'export DOCKER_ENV_CERT_PATH="${HOME}/docker/data/certs"' >> ${HOME}/.bashrc && \
echo 'export DOCKER_PHP_XDEBUG_REMOTE_HOST="192.168.1.x"' >> ${HOME}/.bashrc
  1. Build docker container

docker build php-cli-dev-7.2 \ --no-cache
--build-arg PHP_USER_ID=${DOCKER_ENV_USER_ID} \ --build-arg PHP_GROUP_ID=${DOCKER_ENV_GROUP_ID} \ --build-arg REMOTE_HOST=${DOCKER_PHP_XDEBUG_REMOTE_HOST}
-t xuad/php-cli-dev:7.2

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published