Difference between revisions of "Dockerfile examples"

From wikieduonline
Jump to navigation Jump to search
Line 10: Line 10:
 
  [[FROM]] --platform=linux/amd64 ubuntu
 
  [[FROM]] --platform=linux/amd64 ubuntu
 
  RUN apt install -y nginx
 
  RUN apt install -y nginx
 +
WORKDIR /app
 +
COPY . [[/var/www/html/]]
 +
  
  

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 /app
COPY . /var/www/html/



Related terms

See also

Advertising: