Answers for "run npm install docker"

C
0

Install npm docker

RUN apt-get install -y nodejs npm
Posted by: Guest on August-14-2021
2

dockerfile for nodejs

# Choose the Image which has Node installed already
FROM node:alpine

# COPY all the files from Current Directory into the Container
COPY ./ ./

# Install the Project Dependencies like Express Framework
RUN npm install

# Tell that this image is going to Open a Port 
EXPOSE 8080

# Default Command to launch the Application
CMD ["npm", "start"]
Posted by: Guest on June-08-2020

Code answers related to "C"

Browse Popular Code Answers by Language