Installing npm results in systemd affecting our /sbin/init

This commit is contained in:
Deon George 2021-12-15 23:55:53 +11:00
parent 6da5ac5983
commit 8cf481d733
1 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,9 @@ FROM registry.leenooks.net/leenooks/php:8.0-fpm-latest
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
RUN apt-get update && apt-get install -y npm \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mv /sbin/init /sbin/init.orig \
&& apt-get update && apt-get install -y npm \
&& apt-get -y autoremove \
&& apt-get clean \
&& mv /sbin/init.orig /sbin/init \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*