You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the test stage doesn't have npm dev dependencies, so any test commands would likely fail.
There are two ways to fix that:
Use COPY --from=dev /opt/node_modules/ /opt/node_modules/ in test stage to combine the node modules.
Have dev stage install all npm dependencies (remove --only=development) and then change the test stage to FROM dev as @ivorscott suggested (I like this the most).
The text was updated successfully, but these errors were encountered:
On line
docker-mastery-for-nodejs/sample-buildkit/Dockerfile
Lines 49 to 56 in 43ffcab
There are two ways to fix that:
Use
COPY --from=dev /opt/node_modules/ /opt/node_modules/
in test stage to combine the node modules.Have dev stage install all npm dependencies (remove
--only=development
) and then change the test stage toFROM dev
as @ivorscott suggested (I like this the most).The text was updated successfully, but these errors were encountered: