Skip to content

Instantly share code, notes, and snippets.

@andrewscaya
Created February 15, 2020 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewscaya/17755c4fc51ed96dc2c5287613e46320 to your computer and use it in GitHub Desktop.
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)
FROM asclinux/linuxforphp-8.2-ultimate:src
MAINTAINER Andrew Caya <andrewscaya@yahoo.ca>
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