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
.env
file from.env.sample
and specifyroot
andproject
volumes.
And then:
- Run
$ docker-compose build
command to build the image - Run
$ docker-compose run tensorflowjs
command 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