Normal view

Before yesterdayMain stream

Interesting Docker optimization for a Nuxt + Prisma app — 84% smaller image

A colleague from my team recently wrote a great breakdown of how they reduced a Docker image by 84% for a Nuxt app using Prisma and SQLite.

What I liked about it is that it goes through the actual build strategy changes (multi-stage builds, runtime vs build deps, Prisma generation, etc).

The final Dockerfile is also included.

Curious what others here think about this approach.

https://wencesms.medium.com/optimizing-nuxt-prisma-in-docker-how-we-cut-our-image-size-by-84-ea43ffc5ae6c

submitted by /u/kaskol10 to r/devops
[link] [comments]
❌
❌