2019-11-26 15:14:51 +00:00
|
|
|
#FROM mcr.microsoft.com/powershell:alpine-3.8
|
|
|
|
FROM mcr.microsoft.com/powershell:ubuntu-bionic
|
2019-11-26 14:55:49 +00:00
|
|
|
|
|
|
|
COPY init/entrypoint.sh /usr/local/bin
|
|
|
|
|
|
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh && \
|
2019-11-26 15:14:51 +00:00
|
|
|
apk install --update --no-cache \
|
2019-11-26 14:55:49 +00:00
|
|
|
lighttpd \
|
|
|
|
fcgi \
|
|
|
|
php7-cgi \
|
|
|
|
php7-common \
|
|
|
|
# php7-ctype \
|
|
|
|
php7-curl \
|
|
|
|
# php7-dom \
|
|
|
|
php7-gd \
|
|
|
|
# php7-gettext \
|
|
|
|
# php7-iconv \
|
|
|
|
# php7-imap \
|
|
|
|
php7-json \
|
|
|
|
php7-ldap \
|
|
|
|
# php7-mcrypt \
|
|
|
|
# php7-mysqli \
|
|
|
|
php7-pdo \
|
|
|
|
# php7-pdo_mysql \
|
|
|
|
php7-pdo_sqlite \
|
|
|
|
# php7-posix \
|
|
|
|
php7-session \
|
|
|
|
# php7-soap \
|
|
|
|
# php7-xml \
|
|
|
|
php7-xmlrpc && \
|
2019-11-26 15:14:51 +00:00
|
|
|
# rm -rf /var/cache/apk/* && \
|
2019-11-26 14:55:49 +00:00
|
|
|
# Enable PHP
|
|
|
|
sed -i 's:# include "mod_fastcgi.conf": include "mod_fastcgi.conf":' /etc/lighttpd/lighttpd.conf && \
|
|
|
|
sed -i 's:/usr/bin/php-cgi:/usr/bin/php-cgi7:' /etc/lighttpd/mod_fastcgi.conf && \
|
|
|
|
# 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 lighttpd /run/lighttpd/
|
|
|
|
|
|
|
|
#ADD vhosts.d /etc/lighttpd/vhosts.d
|
|
|
|
VOLUME /etc/lighttpd/vhosts.d
|
|
|
|
VOLUME /var/www
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
|
|
|
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
|