Return the "spec" for the image. A spec is the unique identifier for the image given its current fingerprint. It is a valid Docker Hub name.
(self)
| 987 | |
| 988 | @cache |
| 989 | def spec(self) -> str: |
| 990 | """Return the "spec" for the image. |
| 991 | |
| 992 | A spec is the unique identifier for the image given its current |
| 993 | fingerprint. It is a valid Docker Hub name. |
| 994 | """ |
| 995 | return self.image.docker_name(tag=f"mzbuild-{self.fingerprint()}") |
| 996 | |
| 997 | def write_dockerfile(self) -> IO[bytes]: |
| 998 | """Render the Dockerfile without mzbuild directives. |