Exploring the Monorepo #5: Perfect Docker
dev.to·1d·
Discuss: DEV
📦Package Managers
Preview
Report Post

Hi, let’s start with a recap:

  • We have a pnpm-based monorepo that contains two apps and three libraries.
  • All those packages are Dockerized.
  • A GitHub Actions pipeline builds all packages on each commit.

Today we’ll laser-focus on solving the issues we identified in the previous blog:

  1. Don’t reinstall dependencies if only source-code has changed, it wastes a lot of time.
  2. Don’t manually specify which individual packages to copy, it’s a mess to maintain.
  3. Final images should not contain dev-dependencies, they should be as tidy and optimal as possible.

Read the previous blog for more details on how those issues came about, but now let’s see about solving them.

Table Of Contents

  • [Converging o…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help