Reproducible and error free scripts
Use the Dockerfile to build the image, which we name r_example:
Dockerfile
r_example
docker build -t r_example .
As specified in the image's Dockerfile (CMD line), by default it will run the unit tests:
CMD
docker run r_example