Difference between revisions of "Dockerfile examples"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
  RUN [[npm install --only=production]]
 
  RUN [[npm install --only=production]]
 
  ENTRYPOINT [ "npm", "start" ]
 
  ENTRYPOINT [ "npm", "start" ]
 +
 +
 +
[[FROM]] ubuntu
 +
RUN apt install -y nginx
 +
  
  

Revision as of 16:06, 16 July 2024

Dockerfile examples:

FROM node:carbon
WORKDIR /srv/app
COPY . .
RUN npm install --only=production
ENTRYPOINT [ "npm", "start" ]


FROM ubuntu
RUN apt install -y nginx


Related terms

See also

Advertising: