2019-11-26 15:14:51 +00:00
|
|
|
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:43:09 +00:00
|
|
|
apt-get update && \
|
2019-11-26 15:44:09 +00:00
|
|
|
apt-get install -y \
|
2019-11-26 15:43:09 +00:00
|
|
|
software-properties-common && \
|
|
|
|
add-apt-repository ppa:ondrej/php && \
|
|
|
|
apt-get install -y \
|
2019-11-26 14:55:49 +00:00
|
|
|
lighttpd \
|
2019-11-26 15:46:16 +00:00
|
|
|
# fcgi \
|
2019-11-26 15:43:09 +00:00
|
|
|
php7.3-cgi \
|
|
|
|
php7.3-common \
|
|
|
|
php7.3-curl \
|
|
|
|
php7.3-gd \
|
|
|
|
php7.3-json \
|
|
|
|
php7.3-ldap \
|
|
|
|
php7.3-pdo \
|
2019-11-26 15:46:16 +00:00
|
|
|
# php7.3-pdo_sqlite \
|
|
|
|
# php7.3-session \
|
2019-11-26 15:43:09 +00:00
|
|
|
php7.3-xmlrpc && \
|
2019-11-26 15:17:54 +00:00
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
2019-11-26 15:44:09 +00:00
|
|
|
apt-get remove -y \
|
2019-11-26 15:43:09 +00:00
|
|
|
software-properties-common && \
|
|
|
|
apt-get autoremove -y && \
|
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 && \
|
2019-11-26 15:48:08 +00:00
|
|
|
# sed -i 's:/usr/bin/php-cgi:/usr/bin/php-cgi7:' /etc/lighttpd/mod_fastcgi.conf && \
|
2019-11-26 14:55:49 +00:00
|
|
|
# Include vhost's
|
2019-11-26 15:57:47 +00:00
|
|
|
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/
|
2019-11-26 14:55:49 +00:00
|
|
|
|
|
|
|
#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"]
|