Move npm to base image

This commit is contained in:
Deon George 2024-01-08 22:49:54 +11:00
parent cd26c07099
commit 98210c41a9
2 changed files with 6 additions and 2 deletions

View File

@ -39,6 +39,10 @@ RUN apk add --no-cache libjpeg libgd libpng freetype freetype-dev zlib-dev libpn
RUN curl -4 https://getcomposer.org/installer|php -- --install-dir=/usr/local/bin --filename=composer
ENV COMPOSER_HOME=/var/cache/composer
# Add npm
RUN apk add --no-cache npm
# Other config
COPY msmtprc /etc/
COPY docker/www.conf /usr/local/etc/php-fpm.d/
COPY docker/nginx-app.conf /etc/nginx/http.d/default.conf

View File

@ -3,7 +3,7 @@
FROM registry.dege.au/leenooks/php:8.1-fpm
# Add other built tools
RUN apk --no-cache add npm linux-headers \
# Add xdebug
RUN apk --no-cache add linux-headers \
&& pecl_install xdebug \
&& apk --no-cache del linux-headers