dva builds a front-end project. When
Docker build, it is not executed every time the npm run build is executed, and remains unchanged after the build is displayed.
npm install can execute
dva builds a front-end project. When
Docker build, it is not executed every time the npm run build is executed, and remains unchanged after the build is displayed.
npm install can execute
have you added all the files needed for npm run build
to the Docker container? Before executing npm run build
, you need to ADD.
the problem has been solved. Dva will install the latest roadhog, version 2.3.0. Execution in docker will hang. Just lower the version to 2.2.0
.