Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. git clone git@github.com:docker-library/php.git docker-library-php
  2. ## Go to the specific version you're interested in
  3. cd docker-library-php/7.1/fpm/alpine
  4.  
  5. ## Edit the .Dockerfile.
  6. ## Change
  7. ## ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data
  8. ## to
  9. ## ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --enable-debug
  10. ## Comment out or delete:
  11. ## && { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
  12. ## && docker-php-source delete \
  13.  
  14. ## Now build the container with a tag that make sense.
  15. docker build -t sh41/php:php-7.1.6-fpm-alpine-debug .
  16.  
  17. ## and optionally push to a repo.
  18. ## (might need to docker login)
  19. docker push sh41/php:php-7.1.6-fpm-alpine-debug
  20.  
  21. ## now use this newly built container in place of the non-debug one.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement