Skip to content

chore: smaller image size - #58

Merged
ConnorNeed merged 1 commit into
mainfrom
smaller-image-size
Jul 18, 2026
Merged

chore: smaller image size#58
ConnorNeed merged 1 commit into
mainfrom
smaller-image-size

Conversation

@ConnorNeed

Copy link
Copy Markdown
Member

Cuts image size down from 2.7G to around 500M

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces the resulting Docker image size by switching the Next.js build to standalone output and moving to a multi-stage Docker build that copies only the standalone runtime artifacts into the final image.

Changes:

  • Enable Next.js output: "standalone" to generate a minimal runtime bundle.
  • Convert the Docker build to multi-stage (builder + runner) and run the app via node server.js.
  • Add a .dockerignore to keep build context small and avoid copying unnecessary directories into the build.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
next.config.ts Enables Next.js standalone output for smaller runtime packaging.
Dockerfile Switches to multi-stage build and copies only standalone artifacts into the final image.
.dockerignore Excludes common large/unnecessary directories from the Docker build context.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ConnorNeed
ConnorNeed requested a review from codeflight1 July 18, 2026 06:39
@ConnorNeed
ConnorNeed merged commit 7abf910 into main Jul 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants