ContainerImage.LighttpdPHPP.../Dockerfile
Danny Bessems 7dcea96c80
Some checks reported errors
continuous-integration/drone/push Build was killed
Update 'Dockerfile'
2019-11-27 09:28:46 +00:00

39 lines
1.1 KiB
Docker

FROM mcr.microsoft.com/powershell:ubuntu-bionic
COPY init/entrypoint.sh /usr/local/bin
RUN chmod +x /usr/local/bin/entrypoint.sh && \
apt-get update && \
apt-get install -y \
libterm-readline-gnu-perl \
software-properties-common && \
add-apt-repository ppa:ondrej/php && \
apt-get install -y \
lighttpd \
php7.3-cgi \
php7.3-common \
php7.3-curl \
php7.3-gd \
php7.3-json \
php7.3-ldap \
php7.3-pdo \
# php7.3-pdo_sqlite \
# php7.3-session \
php7.3-xmlrpc && \
rm -rf /var/lib/apt/lists/* && \
# Enable PHP
lighttpd-enable-mod fastcgi-php && \
# Include vhost's
sed -i -e '$a\' -e 'include_shell "cat /etc/lighttpd/vhosts.d/*.conf"' /etc/lighttpd/lighttpd.conf && \
# mkdir -p /run/lighttpd/ && chown www-data /run/lighttpd/ && \
apt-get remove -y \
libterm-readline-gnu-perl \
software-properties-common && \
apt-get autoremove -y
VOLUME /etc/lighttpd/vhosts.d
VOLUME /var/www
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]