December 2018
Intermediate to advanced
268 pages
8h 23m
English
We're going to inherit our Docker container and add the code that we just built into the container:
FROM base_imageADD types.py /
This Dockerfile is inheriting our base container we built in the earlier part of this chapter. We then add the Python file into the container. This will mean that we need to build the container every time we would like to run this code. Luckily, we can make this happen through some shell scripts that we will introduce now.
To test this Python file, we need to open a Terminal, change directory to the data types directory, and create the following build.sh script:
#/bin/bashnvidia-docker build -t ch2 .
In this script, we are ensuring the Ubuntu OS knows which environment ...
Read now
Unlock full access