Setting up Alpine on arm32 to run php for testing on RPi Copy files into /var/www/localhost/htdocs/
357
Vanilla test
docker run -d -t --rm --name alpine-lighttpd-php -p 8081:80 oreillymj1970/alpine-lighttpd-php
curl http://localhost:8081/index.php
curl http://localhost:8081/phpinfo.php
docker exec -it alpine-lighttpd-php /bin/sh
To copy additional files, create a folder called html
Add any php, css, scripts, etc.. to /html
Then create Dockerfile and build
FROM oreillymj1970/alpine-lighttpd-php
COPY /html /var/www/localhost/htdocs/
EXPOSE 80
ENTRYPOINT ["/bin/sh"]
CMD ["/tmp/sleep.sh"]
Content type
Image
Digest
Size
9.9 MB
Last updated
over 4 years ago
docker pull oreillymj1970/alpine-lighttpd-php