Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading external modules when running in docker #3

Open
theoephraim opened this issue Oct 31, 2020 · 1 comment
Open

Loading external modules when running in docker #3

theoephraim opened this issue Oct 31, 2020 · 1 comment

Comments

@theoephraim
Copy link

I couldn't quite figure out how to get external modules to load when running the docker image.
It says in the docs "Note that require() will search for modules starting from the working directory of Redis or KeyDB"

  • Specifically within the docker image, which directory is that?
  • Should I map a folder of node_modules with my modules in it to that location? or the module (ex: lodash) folder itself?

Thanks so much!

@theoephraim
Copy link
Author

On a related note, I also am unable to load other local files in the same directory - ie breaking up my script into a few files and loading something like require('./helpers.js')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant