Sign inSign up

icebrian/unp

By icebrian

•Updated over 6 years ago

Docker image with Ubuntu 20.04 + nginx + PHP-FPM

Image
0

57

icebrian/unp repository overview

Docker image with Ubuntu 20.04 + nginx + PHP-FPM

Both nginx and PHP-FPM configured to output to /dev/stderr and /dev/stdout respectively

⁠Example Dockerfile

FROM icebrian/unp:1.0

COPY phpinfo.php /var/www/html/

COPY init.sh /usr/local/bin/
RUN chmod u+x /usr/local/bin/init.sh

EXPOSE 80 443
ENTRYPOINT ["init.sh"]

⁠Example init.sh

#!/bin/bash
set -e

echo "Start PHP-FPM ..."
service php7.4-fpm start

/usr/sbin/nginx -c /etc/nginx/nginx.conf -g "daemon off;"

Tag summary

Content type

Image

Digest

Size

106.8 MB

Last updated

over 6 years ago

docker pull icebrian/unp:1.0