Forem

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

Why npm fails to install nessesary files in my Dockerfile?

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.

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more