From 92c9cee4c77ab826f7760965efbbc055d8c889bd Mon Sep 17 00:00:00 2001 From: Saurav Maheshkar Date: Sat, 25 Feb 2023 20:30:02 +0000 Subject: [PATCH] feat(docker): Add opencontainers image-spec to `Dockerfile` (#1502) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR makes a few tiny changes to improve the overall quality of the docker image 🐳 . For reference more annotations can be found [here](https://github.com/opencontainers/image-spec/blob/main/annotations.md) --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0b8cd961a..26f6541e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,12 @@ # Define base image. FROM nvidia/cuda:11.8.0-devel-ubuntu22.04 +# metainformation +LABEL org.opencontainers.image.version = "0.1.18" +LABEL org.opencontainers.image.source = "https://github.com/nerfstudio-project/nerfstudio" +LABEL org.opencontainers.image.licenses = "Apache License 2.0" +LABEL org.opencontainers.image.base.name="docker.io/library/nvidia/cuda:11.8.0-devel-ubuntu22.04" + # Variables used at build time. ## CUDA architectures, required by Colmap and tiny-cuda-nn. ## NOTE: All commonly used GPU architectures are included and supported here. To speedup the image build process remove all architectures but the one of your explicit GPU. Find details here: https://developer.nvidia.com/cuda-gpus (8.6 translates to 86 in the line below) or in the docs.