skip to Main Content

How to install /usr/bin/npm with Docker

I have the following Dockerfile. It correctly installs /usr/bin/node but not /usr/bin/npm. What do I need to add/change to fix this? FROM php:8.3-apache COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer RUN apt-get update && apt-get install -y gnupg && mkdir -p /etc/apt/keyrings &&…

VIEW QUESTION
Back To Top
Search