Closed carsonip closed 8 years ago
I realize the bzip2
isn't installed, causing the installation to fail. Will create a pull request to improve the README.md.
Error: Cannot find module 'es6-promise'
can be resolved through setting a WORKDIR
other than file system root in docker.
I received this same error using node:6.3.1
, which already included bzip2
. I'll look into the WORKDIR
fix.
@carsonip what did you end up setting your WORKDIR
to?
@westy92 something like /usr/src/myproj
should work.
This worked for me!
FROM node:6.3.1
WORKDIR /usr/src
COPY . .
RUN npm install --production
CMD [ "npm", "start" ]
Using docker image
node:6.3.1-slim
. (I have tested in my own system and it works. Weird stuff.)Any thoughts?
System info:
Error message:
and I suppose
es6-promise
is listed as a dependency and it is installed: