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?
I'm trying to get the
DOCKER_IMAGEenvironment 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 nopackage.jsonexists in/).Any ideas how to get around this?