Difference between revisions of "Dockerfile examples"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
RUN [[npm install --only=production]] | RUN [[npm install --only=production]] | ||
ENTRYPOINT [ "npm", "start" ] | ENTRYPOINT [ "npm", "start" ] | ||
+ | |||
+ | |||
+ | [[FROM]] ubuntu | ||
+ | RUN apt install -y nginx | ||
+ | |||
Revision as of 16:06, 16 July 2024
Dockerfile
examples:
FROM node:carbon WORKDIR /srv/app COPY . . RUN npm install --only=production ENTRYPOINT [ "npm", "start" ]
FROM ubuntu RUN apt install -y nginx
Related terms
See also
Dockerfile: FROM, RUN, CMD, ENTRYPOINT, WORKDIR, COPY, ADD, USER, ENV, ARG, HEALTHCHECK
,hadolint, LABEL, EXPOSE
Advertising: