Dockerfile examples

From wikieduonline
Revision as of 16:22, 16 July 2024 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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: