From 2554989fdf584e53b60f78c6630a8b9c640ee490 Mon Sep 17 00:00:00 2001 From: smyja Date: Sat, 21 Oct 2023 14:47:06 +0100 Subject: [PATCH] Update content/smyja/nextjs-deployment-with-caprover-and-github-actions.md Co-authored-by: Kyra Thompson --- .../smyja/nextjs-deployment-with-caprover-and-github-actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/smyja/nextjs-deployment-with-caprover-and-github-actions.md b/content/smyja/nextjs-deployment-with-caprover-and-github-actions.md index 617839a..2d87676 100644 --- a/content/smyja/nextjs-deployment-with-caprover-and-github-actions.md +++ b/content/smyja/nextjs-deployment-with-caprover-and-github-actions.md @@ -138,7 +138,7 @@ EXPOSE 3000 CMD ["npm", "run", "start"] ``` -The first stage of the build uses the node:16-alpine image as a base. This image is a lightweight version of Node.js that is optimized for production use. The `ENV NODE_ENV=production` line sets the environment variable `NODE_ENV` to production. This tells Next.js to use its production build configuration. +The first stage of the build uses the `node:16-alpine` image as a base. This image is a lightweight version of Node.js that is optimized for production use. The `ENV NODE_ENV=production` line sets the environment variable `NODE_ENV` to production. This tells Next.js to use its production build configuration. The second stage of the build copies the application files into the image. The `COPY package*.json ./` line copies the package.json and package-lock.json files into the image. These files are used to install the application's dependencies. The COPY ./.next ./.next line copies the built application files into the image. These files are the static files that are served by the Next.js server.