DEV Community

Discussion on: Simplify your monorepo with npm 7 workspaces

Collapse
 
kapaski profile image
Kapaski

Great read - I wonder when it comes to dockerising just app1 or app2 to their own images, how we handle the common part? will it work if I just copy app1 and common with respect of the folder structure, install dependencies respectively, and create a shorter version of the workspace package.json that just mention app1 and common, then use that package.json as docker's command entry point, so that @xyz /ui still works for app1 even in a contianer, meanwhile i don't have to copy and build the entire monorepo in an image where I just need app1?