![]() The “build platform” stage can then be used as our Dev Container, from the command line as (assuming, this Dockerfile resides inside your project directory where also src/ etc. # -ĬMD npm run build & mv dist /build/result/app (Further reading: Docker cache management)įor one of our current React projects (in which I chose to try Vite in favor of the outdated Create-React-App, see also here), the Dockerfile might look like for running the build in production, or for further dependencies), but the basic distinction above helps us to speed up the development process already.
0 Comments
Leave a Reply. |