Skip to content

How to build with Vite in Docker using yarn workspaces focus --production? #488

Answered by ArnaudBarre
calinLazuran asked this question in Q&A
Discussion options

You must be logged in to vote

What I use and I think should fit your need is the docker builder pattern, where I first install all deps in one layer, run vite build and import only the dist folder in the second layer where only "runtime deps" are installed

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by calinLazuran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants