Skip to content

Docker image option doesn't work because npm install is run in the wrong directory #314

Description

@itsMichaelBates

I'm trying to get the DOCKER_IMAGE environment variable/command line argument to work with an existing docker image I have (of Amazon Linux, to compile platform specific binaries).

However, because the project's files are mounted in /var/task, and Docker by default launches in / the npm install command fails (because no package.json exists in /).

Any ideas how to get around this?

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions