I have the following command:
docker run --privileged=true -it --rm \
-w /usr/src/app \
-v ./package.json:/usr/src/app/package.json \
-v .bowerrc:/usr/src/app/.bowerrc \
-v ./bower.json:/usr/src/app/bower.json \
-v ./build/npm.tmp/node_modules:/usr/src/app/build/npm.tmp/node_modules \
-v ./build/npm.tmp/bignibou-client/src/bower_components:/usr/src/app/build/npm.tmp/bignibou-client/src/bower_components \
digitallyseamless/nodejs-bower-grunt bash
I end up with package.json
being a directory in the docker container instead of a file.
root@c706711a7ad4:/usr/src/app# cat package.json/
cat: package.json/: Is a directory
How can I sort this problem? What am I getting wrong with the syntax?
edit:
Using the advice from @manojlds works fine:
Changing to -v $(pwd)/package.json:/usr/src/app/package.json \
sorts out the issue.