klotz: nginx*

0 bookmark(s) - Sort by: Date ↓ / Title / - Bookmarks from other users for this tag

  1. 2023-02-27 Tags: , , , , , by klotz
  2. Modify the existing file. Add the stage name after the as keyword.

    FROM node:13.12.0-alpine as builder

    By changing this line above, we told Docker that this image is a stage. We will be able to reference it in other stages. We can copy specific files and folders from this image with the command COPY —from*=<stage_name>. Our Multi staging Dockerfile is starting to take shape. We need to add the Nginx stage, and we are done.

    ### Add to your existing Dockerfile
    ...

    # ------------------------------------------------------
    # Production Build
    # ------------------------------------------------------
    FROM nginx
    COPY nginx.conf /etc/nginx/conf.d/default.conf
    COPY --from=builder /app/build /usr/share/nginx/html
    view rawDockerfile hosted with ❤ by GitHub


    The COPY --from=builder tells Docker to precisely copy the files inside the /app/build/folder inside our Nginx container.
    2021-03-07 Tags: , , by klotz
  3. 2019-03-15 Tags: , , by klotz
  4. 2019-02-09 Tags: , , , by klotz
  5. 2018-09-18 Tags: , , by klotz
  6. 2018-09-11 Tags: , , by klotz
  7. 2018-09-03 Tags: , by klotz
  8. 2018-09-03 Tags: , by klotz

Top of the page

First / Previous / Next / Last / Page 1 of 0 SemanticScuttle - klotz.me: Tags: nginx

About - Propulsed by SemanticScuttle