Fix as systemd-sysv was getting installed clobbering our /sbin/init
This commit is contained in:
parent
d798579306
commit
70276ff5c3
16
Dockerfile
16
Dockerfile
@ -3,16 +3,24 @@
|
|||||||
|
|
||||||
FROM registry.leenooks.net/leenooks/php:7.4-fpm-plus
|
FROM registry.leenooks.net/leenooks/php:7.4-fpm-plus
|
||||||
|
|
||||||
RUN echo "deb http://deb.debian.org/debian buster non-free" >> /etc/apt/sources.list.d/non-free.list && apt-get update \
|
RUN mv /sbin/init /sbin/init.tmp \
|
||||||
|
&& echo "deb http://deb.debian.org/debian buster non-free" >> /etc/apt/sources.list.d/non-free.list && apt-get update \
|
||||||
&& apt-get install -y mariadb-client-10.3 inetutils-ping fping pkg-config \
|
&& apt-get install -y mariadb-client-10.3 inetutils-ping fping pkg-config \
|
||||||
libsnmp-dev snmp-mibs-downloader --no-install-recommends \
|
libsnmp-dev snmp-mibs-downloader --no-install-recommends \
|
||||||
&& download-mibs \
|
&& download-mibs \
|
||||||
&& docker-php-ext-install -j$(nproc) snmp \
|
&& docker-php-ext-install -j$(nproc) snmp \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
&& apt purge -yqq systemd-sysv dconf-service \
|
||||||
|
&& apt autoremove -yqq \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* /tmp/* \
|
||||||
|
&& mv /sbin/init.tmp /sbin/init
|
||||||
|
|
||||||
# Add in Leenooks' apt repository
|
# Add in Leenooks' apt repository
|
||||||
RUN curl -sL http://apt.leenooks.net/setup.sh | DISTRO=buster bash
|
RUN curl -sL http://apt.leenooks.net/setup.sh | DISTRO=buster bash
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN mv /sbin/init /sbin/init.tmp \
|
||||||
|
&& apt-get update \
|
||||||
&& apt-get install -yqq wkhtmltopdf \
|
&& apt-get install -yqq wkhtmltopdf \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
&& apt purge -yqq systemd-sysv dconf-service \
|
||||||
|
&& apt autoremove -yqq \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* /tmp/* \
|
||||||
|
&& mv /sbin/init.tmp /sbin/init
|
||||||
|
Loading…
Reference in New Issue
Block a user