added opencontainers.org labels to docker containers

This commit is contained in:
Jenny Danzmayr 2023-11-12 19:06:01 +01:00
parent e039cae5c8
commit db4c441f67
3 changed files with 24 additions and 3 deletions

View file

@ -1,6 +1,16 @@
# syntax=docker/dockerfile:1.4
FROM ubuntu:lunar-20231004@sha256:51e70689b125fcc2e800f5efb7ba465dee85ede9da9c268ff5599053c7e52b77 as base
ARG BASE_IMAGE_NAME=ubuntu:lunar-20231004
ARG BASE_IMAGE_DIGEST=sha256:51e70689b125fcc2e800f5efb7ba465dee85ede9da9c268ff5599053c7e52b77
ARG TARGETARCH
FROM ${BASE_IMAGE_NAME}@${BASE_IMAGE_DIGEST} as base
LABEL org.opencontainers.image.base.name="docker.io/library/$BASE_IMAGE_NAME" \
org.opencontainers.image.base.digest="$BASE_IMAGE_DIGEST" \
org.opencontainers.image.source="https://github.com/c3nav/c3nav" \
org.opencontainers.image.url="https://c3nav.de" \
org.opencontainers.image.authors="c3nav team"
ENV DEBIAN_FRONTEND noninteractive
RUN --mount=type=cache,target=/var/cache/apt,id=apt_$TARGETARCH --mount=type=tmpfs,target=/var/lib/apt/lists \