Why npm fails to install nessesary files in my Dockerfile?

Dimitrios Desyllas - Sep 14 '23 - - Dev Community

I am making a php and a nodejs image but I get the following error:

-1

In my Dockerfile I use both npm and php:


ARG PHP_VER=8.1\
    NODE_VER=6.14
FROM node:${NODE_VER} AS node
FROM php:${PHP_VER}-fpm

RUN install-php-extensions\
     bcmath\
     ctype\
     curl\
     dom\ 
     fileinfo\ 
     filter\ 
     gd\ 
     hash\ 
     iconv\ 
     intl\ 
     json\ 
     libxml\ 
     openssl\ 
     mbstring\ 
     pcre\
     pdo pdo_mysql\
     simplexml\
     soap \
     sockets\
     sodium\
     spl\
     tokenizer\
     xmlwriter\
     xsl \
     oauth \
     opcache

Once I try to build an image for my app.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player