Skip to content

Conversation

@alainncls
Copy link
Collaborator

@alainncls alainncls commented Dec 13, 2025

Fixes #361

From 8.18GB to 294MB (28 times smaller!)

image

Note

Refactors packages/linea-ens-app Docker build to a slim multi-stage Node 22 Alpine image using pnpm and Next.js standalone output, adds a repo-level .dockerignore, updates Next config for standalone/tracing, and tweaks stylelint config.

  • Build/Docker:
    • Replace legacy Dockerfile with multi-stage node:22-alpine build using Corepack/pnpm, cached installs, and non-root runtime user.
    • Build Next.js app as output: 'standalone'; copy standalone server, static assets, and public/ into runner; start via node packages/linea-ens-app/server.js.
    • Limit workspace install by copying only required package.jsons and lockfile; add system deps via apk.
    • Add top-level .dockerignore to exclude dev/test artifacts and unrelated packages from the build context.
  • Next.js config (packages/linea-ens-app/next.config.mjs):
    • Enable output: 'standalone' and set outputFileTracingRoot to monorepo root for pnpm; minor cleanup of generateBuildId.
  • Lint (.stylelintrc.json):
    • Minor rule/format updates; set no-descending-specificity to null.

Written by Cursor Bugbot for commit 50f2b92. This will update automatically on new commits. Configure here.

@alainncls alainncls self-assigned this Dec 13, 2025
@alainncls alainncls requested a review from a team as a code owner December 13, 2025 08:51
@alainncls alainncls force-pushed the chore/refactor-linea-ens-app-dockerfile branch from a54861c to 50f2b92 Compare December 15, 2025 07:50
@alainncls alainncls merged commit 3b6faeb into main Dec 15, 2025
7 checks passed
@alainncls alainncls deleted the chore/refactor-linea-ens-app-dockerfile branch December 15, 2025 08:44
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.

Reduce linea-ens-app Docker image size

3 participants