Difference between revisions of "Dockerfile examples"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<code>[[Dockerfile]]</code> examples:
 
<code>[[Dockerfile]]</code> examples:
  
  [[FROM]] node:carbon
+
  [[FROM]] [[node:carbon]]
 
  WORKDIR /srv/app
 
  WORKDIR /srv/app
  COPY . .
+
  [[COPY]] . .
 
  RUN [[npm install --only=production]]
 
  RUN [[npm install --only=production]]
 
  ENTRYPOINT [ "npm", "start" ]
 
  ENTRYPOINT [ "npm", "start" ]

Latest revision as of 10:13, 30 June 2023

Advertising: