Created
February 15, 2020 22:49
-
-
Save andrewscaya/17755c4fc51ed96dc2c5287613e46320 to your computer and use it in GitHub Desktop.
Basic Dockerfile example to compile PHP 8.0.0dev on Linux for PHP (https://linuxforphp.net)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM asclinux/linuxforphp-8.2-ultimate:src | |
MAINTAINER Andrew Caya <[email protected]> | |
EXPOSE 80 | |
# Compile PHP 8.0.0dev | |
RUN /bin/lfphp-compile "" nts | |
# Change root password | |
RUN echo "root:newsecret" | chpasswd | |
ENTRYPOINT ["/bin/lfphp"] | |
CMD ["--mysql", "--phpfpm", "--apache"] | |
RUN touch /srv/www/index.php && echo "<?php phpinfo();" > /srv/www/index.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment