Skip to content

Commit

Permalink
base: add labels to the resulting image containing the build properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavosr8 committed Dec 20, 2024
1 parent ec99e5b commit 023692b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ FROM ghcr.io/cnpem/lnls-debian-epics-7:v0.12.0-dev AS build-image

FROM debian:${DEBIAN_VERSION}-slim AS base

LABEL br.lnls.epics-in-docker.version="v0.12.0-dev"
ARG DEBIAN_VERSION
LABEL br.lnls.debian.version=${DEBIAN_VERSION}

ARG RUNDIR
ARG ENTRYPOINT=/usr/local/bin/lnls-run
ARG RUNTIME_PACKAGES
Expand Down Expand Up @@ -80,6 +84,7 @@ FROM base AS dynamic-link

COPY --from=dynamic-build /opt /opt

LABEL org.opencontainers.image.build_target="dynamic-link"

FROM build-stage AS static-build

Expand All @@ -94,6 +99,8 @@ RUN make distclean && make -j ${JOBS} && make $([ "$SKIP_TESTS" != 1 ] && echo r

FROM base AS static-link

LABEL org.opencontainers.image.link_type="static-link"

ARG REPONAME

COPY --from=static-build /opt/${REPONAME} /opt/${REPONAME}

0 comments on commit 023692b

Please # to comment.