Hello,

  While working with our Docker containers I noticed the "postinstall" step 
started to fail if the whole repository wasn't copied at build time:

    ----
    $ node scripts/browserifyTestDependency.js
    module.js:487
        throw err;
        ^
    Error: Cannot find module 
'/home/node/node_modules/universal/scripts/browserifyTestDependency.js'
    ----


  Not copying the whole repository allows us to cache Docker layers more 
efficiently. However, it means things like browserifyTestDependency.js won't 
exist at `npm install` time.

  I would just like to confirm if this is a pure dev dependency that can be 
ignored for production images. If that's the case, I'll use `--ignore-scripts` 
to bypass the 'postinstall' scripts.

  Alternatively, could this step be transparently moved into any of the 'test' 
scripts?

Thanks,
Giovanni

_______________________________________________
Architecture mailing list
[email protected]
http://lists.gpii.net/mailman/listinfo/architecture

Reply via email to