-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,18 @@ LABEL MAINTAINERS="barthel <[email protected]>" | |
LABEL maintainers="barthel <[email protected]>" | ||
LABEL CONTAINER_INFORMATION="${CONTAINER_INFORMATION}" | ||
|
||
ENV CONTAINER_INFORMATION="${CONTAINER_INFORMATION} - (${TARGETARCH})" | ||
# Set ENV variable to the value of the ARG parameter and add TARGETARCH | ||
# This ensures that the ARG value is used and not an ENV that may have been overwritten by the base container. | ||
RUN export CONTAINER_INFORMATION="${CONTAINER_INFORMATION} - (${TARGETARCH})" && \ | ||
echo $CONTAINER_INFORMATION > /tmp/container_info && \ | ||
echo "CONTAINER_INFORMATION=${CONTAINER_INFORMATION}" > /tmp/envs | ||
|
||
# Load the ENV variable from the temporary file to make it available in the container | ||
ENV CONTAINER_INFORMATION="$(cat /tmp/container_info)" | ||
|
||
# Optional: Entferne die temporäre Datei, wenn nicht mehr benötigt | ||
RUN rm /tmp/container_info /tmp/envs | ||
|
||
# Print the architecture | ||
RUN echo "Building for architecture: ${TARGETARCH}" | ||
|
||
|