Difference between revisions of "Dockerfile examples"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
  RUN [[npm install --only=production]]
 
  RUN [[npm install --only=production]]
 
  ENTRYPOINT [ "npm", "start" ]
 
  ENTRYPOINT [ "npm", "start" ]
 +
 +
 +
[[FROM]] --platform=linux/amd64 ubuntu
 +
RUN apt install -y nginx
 +
WORKDIR /code
 +
COPY . [[/var/www/html/]]
 +
 +
  
  

Latest revision as of 16:22, 16 July 2024

Dockerfile examples:

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


FROM --platform=linux/amd64 ubuntu
RUN apt install -y nginx
WORKDIR /code
COPY . /var/www/html/



Related terms[edit]

See also[edit]

Advertising: