##Dockerfile##
FROM srisathis/centos:7.8
MAINTAINER sathish [email protected]
RUN yum install -y gcc-c++ make
&& curl -sL https://rpm.nodesource.com/setup_8.x | bash -
&& yum install nodejs -y
##Build Command##
docker image build -t .
##Add the Below commands in Node Project##
FROM node
MAINTAINER sathish [email protected]
WORKDIR /home/sathish
ADD . .
RUN npm i
CMD ["npm","start"]
##Docker Run
docker run
-p 8080:8080
--name
-d <ImageName
Content type
Image
Digest
Size
238.3 MB
Last updated
over 6 years ago
docker pull srisathis/node:8