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 Jan 6, 2025
1 parent 499e415 commit 60a6c67
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 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 @@ -46,6 +50,7 @@ FROM base AS no-build

COPY --from=build-image /opt /opt

LABEL br.lnls.epics-in-docker.target="no-build"

FROM build-image AS build-stage

Expand Down Expand Up @@ -80,6 +85,7 @@ FROM base AS dynamic-link

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

LABEL br.lnls.epics-in-docker.target="dynamic-link"

FROM build-stage AS static-build

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

FROM base AS static-link

LABEL br.lnls.epics-in-docker.target="static-link"

ARG REPONAME

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

0 comments on commit 60a6c67

Please sign in to comment.