This commit is contained in:
parent
e3c1c106c6
commit
7dcea96c80
18
Dockerfile
18
Dockerfile
@ -5,11 +5,11 @@ COPY init/entrypoint.sh /usr/local/bin
|
|||||||
RUN chmod +x /usr/local/bin/entrypoint.sh && \
|
RUN chmod +x /usr/local/bin/entrypoint.sh && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
|
libterm-readline-gnu-perl \
|
||||||
software-properties-common && \
|
software-properties-common && \
|
||||||
add-apt-repository ppa:ondrej/php && \
|
add-apt-repository ppa:ondrej/php && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
lighttpd \
|
lighttpd \
|
||||||
# fcgi \
|
|
||||||
php7.3-cgi \
|
php7.3-cgi \
|
||||||
php7.3-common \
|
php7.3-common \
|
||||||
php7.3-curl \
|
php7.3-curl \
|
||||||
@ -21,17 +21,17 @@ RUN chmod +x /usr/local/bin/entrypoint.sh && \
|
|||||||
# php7.3-session \
|
# php7.3-session \
|
||||||
php7.3-xmlrpc && \
|
php7.3-xmlrpc && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
apt-get remove -y \
|
|
||||||
software-properties-common && \
|
|
||||||
apt-get autoremove -y && \
|
|
||||||
# Enable PHP
|
# Enable PHP
|
||||||
sed -i 's:# include "mod_fastcgi.conf": include "mod_fastcgi.conf":' /etc/lighttpd/lighttpd.conf && \
|
lighttpd-enable-mod fastcgi-php && \
|
||||||
# sed -i 's:/usr/bin/php-cgi:/usr/bin/php-cgi7:' /etc/lighttpd/mod_fastcgi.conf && \
|
|
||||||
# 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 && \
|
||||||
# mkdir -p /run/lighttpd/ && chown lighttpd /run/lighttpd/
|
# mkdir -p /run/lighttpd/ && chown www-data /run/lighttpd/ && \
|
||||||
|
apt-get remove -y \
|
||||||
|
libterm-readline-gnu-perl \
|
||||||
|
software-properties-common && \
|
||||||
|
apt-get autoremove -y
|
||||||
|
|
||||||
|
|
||||||
#ADD vhosts.d /etc/lighttpd/vhosts.d
|
|
||||||
VOLUME /etc/lighttpd/vhosts.d
|
VOLUME /etc/lighttpd/vhosts.d
|
||||||
VOLUME /var/www
|
VOLUME /var/www
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user