Difference between revisions of "Dockerfile examples"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
− | [[FROM]] ubuntu | + | [[FROM]] --platform=linux/amd64 ubuntu |
RUN apt install -y nginx | 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]
Dockerfile: FROM, RUN, CMD, ENTRYPOINT, WORKDIR, COPY, ADD, USER, ENV, ARG, HEALTHCHECK
,hadolint, LABEL, EXPOSE
Advertising: