Update 'Dockerfile'
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2020-06-05 11:17:39 +00:00
parent 211a10e8d4
commit 36e05252a0
1 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
FROM mcr.microsoft.com/powershell:ubuntu-bionic
ARG DEBIAN_FRONTEND=noninteractive
ARG PHP_VERSION=7.3
ARG PHP_VERSION=7.4
COPY init/entrypoint.sh /usr/local/bin
@ -28,9 +28,8 @@ RUN chmod +x /usr/local/bin/entrypoint.sh && \
# Include vhost's
sed -i -e '$a\' -e 'include_shell "cat /etc/lighttpd/vhosts.d/*.conf"' /etc/lighttpd/lighttpd.conf && \
# Enable browscap
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 && \
sed -i -e 's|;browscap.*|browscap = /usr/lib/php/browscap.ini|' /etc/php/$PHP_VERSION/cgi/php.ini && \
curl -Ls https://browscap.org/stream?q=Lite_PHP_BrowsCapINI -o /usr/lib/php/browscap.ini && \
mkdir -p /run/lighttpd/ && chown www-data /run/lighttpd/ && \
apt-get remove -y \
libterm-readline-gnu-perl \