Skip to content

Commit

Permalink
Update content/smyja/nextjs-deployment-with-caprover-and-github-actio…
Browse files Browse the repository at this point in the history
…ns.md

Co-authored-by: Kyra Thompson <[email protected]>
  • Loading branch information
smyja and KTom101 authored Oct 21, 2023
1 parent 1831c47 commit 2554989
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 2554989

Please sign in to comment.