Skip to content

Instantly share code, notes, and snippets.

@dolph
Last active November 2, 2017 20:54
Show Gist options
  • Save dolph/9e28f658bd7e736d255beee319b4d893 to your computer and use it in GitHub Desktop.
Save dolph/9e28f658bd7e736d255beee319b4d893 to your computer and use it in GitHub Desktop.

If you're using Docker, then you'll need to run all of the cordova commands inside your Docker container. For example:

$ docker run \
  --volume="$HOME/watson-calorie-counter/mobile:/mobile" \
  calorie-counter \
  cordova --help

Start by adding the Android platform as the target for your mobile app.

$ cd $HOME/watson-calorie-counter/mobile
$ cordova platform add android

But run inside docker, would be:

$ docker run \
  --volume="$HOME/watson-calorie-counter/mobile:/mobile" \
  calorie-counter \
  cordova platform add android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment