COPY compute,js .
CMD pwd; ls -lh; cat compute.js
After getting errors I read that specifying a WORKDIR could help. The output when this is built and run:
% docker run --rm jsimage
-rw-r–r-- 1 root root 129 Nov 9 15:19 compute,js
cat: can’t open ‘compute.js’: No such file or directory
ls commands work fine, but not
cat. Something is strange about the copied
compute.js file (which is fine on the macOS disk.)
And of course using the
node command (instead of
cat) just tells me that it can’t find the
compute.js file. Any suggestions?
Type your question above this line.