DEV Community

Discussion on: How to Deploy a Vue Application on Cloud Run

Collapse
 
steren profile image
Steren

Doing the build as part of the start command likely hurts the startup time of your app.
You should do it as a line of your Dockerfile.

Collapse
 
enkaypeter profile image
Nkere-Awaji Inwan

Yeah it does, but building the app at build time will mean the static assets will not have access to the environment variables passed at run time. One way to optimise the application startup time is optimising the code base such that build time is as fast as possible.