This commit is contained in:
parent
292b98789d
commit
bd4f7eedd1
25
Dockerfile
25
Dockerfile
@ -1,6 +1,7 @@
|
|||||||
FROM mcr.microsoft.com/powershell:ubuntu-bionic
|
FROM mcr.microsoft.com/powershell:ubuntu-bionic
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG PHP_VERSION=7.3
|
||||||
|
|
||||||
COPY init/entrypoint.sh /usr/local/bin
|
COPY init/entrypoint.sh /usr/local/bin
|
||||||
|
|
||||||
@ -12,22 +13,24 @@ RUN chmod +x /usr/local/bin/entrypoint.sh && \
|
|||||||
add-apt-repository ppa:ondrej/php && \
|
add-apt-repository ppa:ondrej/php && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
lighttpd \
|
lighttpd \
|
||||||
php7.3-cgi \
|
php$PHP_VERSION-cgi \
|
||||||
php7.3-common \
|
php$PHP_VERSION-common \
|
||||||
php7.3-curl \
|
php$PHP_VERSION-curl \
|
||||||
php7.3-gd \
|
php$PHP_VERSION-gd \
|
||||||
php7.3-json \
|
php$PHP_VERSION-json \
|
||||||
php7.3-ldap \
|
php$PHP_VERSION-ldap \
|
||||||
php7.3-pdo \
|
php$PHP_VERSION-pdo \
|
||||||
php7.3-sqlite3 \
|
php$PHP_VERSION-sqlite3 \
|
||||||
# php7.3-session \
|
# php$PHP_VERSION-session \
|
||||||
php7.3-xmlrpc && \
|
php$PHP_VERSION-xmlrpc && \
|
||||||
# Enable PHP
|
# Enable PHP
|
||||||
lighttpd-enable-mod fastcgi-php && \
|
lighttpd-enable-mod fastcgi-php && \
|
||||||
# Include vhost's
|
# Include vhost's
|
||||||
sed -i -e '$a\' -e 'include_shell "cat /etc/lighttpd/vhosts.d/*.conf"' /etc/lighttpd/lighttpd.conf && \
|
sed -i -e '$a\' -e 'include_shell "cat /etc/lighttpd/vhosts.d/*.conf"' /etc/lighttpd/lighttpd.conf && \
|
||||||
# Enable browscap
|
# Enable browscap
|
||||||
sed -i -e 's/;browscap /browscap /' /etc/php/cgi/php.ini && \
|
sed -i -e 's/;browscap /browscap /' /etc/php/$PHP_VERSION/cgi/php.ini && \
|
||||||
|
mkdir /etc/php/$PHP_VERSION/cgi/extra &&
|
||||||
|
curl -Ls https://browscap.org/stream?q=Lite_PHP_BrowsCapINI -o /etc/php/$PHP_VERSION/cgi/extra/browscap.ini && \
|
||||||
mkdir -p /run/lighttpd/ && chown www-data /run/lighttpd/ && \
|
mkdir -p /run/lighttpd/ && chown www-data /run/lighttpd/ && \
|
||||||
apt-get remove -y \
|
apt-get remove -y \
|
||||||
libterm-readline-gnu-perl \
|
libterm-readline-gnu-perl \
|
||||||
|
Loading…
Reference in New Issue
Block a user