Personal docker environment for TensorFlowJS Node for Development purpose
Because:
- I didn't want to install Xcode (which also takes up a lot of space)
- Easy to setup on different machines
Assuming you have Docker setup completed:
If you plan to make use of compose file shared here:
- Create a
.envfile from.env.sampleand specifyrootandprojectvolumes.
And then:
- Run
$ docker-compose buildcommand to build the image - Run
$ docker-compose run tensorflowjscommand to run the container.
Otherwise:
- Run
$ docker build .command to build the image - Run
$ docker run -it --rm <imageid>command to run the container.
I haven't given it much thought