[docker] Add the license and notice file to the images

This patch adds the LICENSE.txt and the NOTICE.txt files
to all of the Docker images.

Change-Id: Icafa66c176ff96b56d66fcaf0c557aa13cd1d177
Reviewed-on: http://gerrit.cloudera.org:8080/17594
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <aserbin@cloudera.com>
Reviewed-by: Bankim Bhavsar <bankim@cloudera.com>
diff --git a/docker/Dockerfile b/docker/Dockerfile
index ea8d085..0f7e2cb 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -37,6 +37,11 @@
 #
 FROM $RUNTIME_BASE_OS as runtime
 
+# Copy the license and notice files into the image
+# so that it is propagated to all derived runtime images.
+COPY ./LICENSE.txt /NOTICES/LICENSE.txt
+COPY ./NOTICE.txt /NOTICES/NOTICE.txt
+
 COPY ./docker/bootstrap-runtime-env.sh /
 RUN ./bootstrap-runtime-env.sh && rm bootstrap-runtime-env.sh
 
@@ -68,6 +73,11 @@
 #
 FROM $DEV_BASE_OS as dev
 
+# Copy the license and notice files into the image
+# so that it is propagated to all derived dev images.
+COPY ./LICENSE.txt /NOTICES/LICENSE.txt
+COPY ./NOTICE.txt /NOTICES/NOTICE.txt
+
 COPY ./docker/bootstrap-dev-env.sh /
 COPY ./docker/bootstrap-java-env.sh /
 COPY ./docker/bootstrap-python-env.sh /