Skip to content

Loading external modules when running in docker #3

Open

Description

@theoephraim

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!

Activity

  1. theoephraim commented on Nov 3, 2020

    @theoephraim
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions