Sign inSign up

oreillymj1970/alpine-lighttpd-php

By oreillymj1970

•Updated over 4 years ago

Setting up Alpine on arm32 to run php for testing on RPi Copy files into /var/www/localhost/htdocs/

Image
0

357

oreillymj1970/alpine-lighttpd-php repository overview

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"]

Tag summary

Content type

Image

Digest

Size

9.9 MB

Last updated

over 4 years ago

docker pull oreillymj1970/alpine-lighttpd-php