-
Notifications
You must be signed in to change notification settings - Fork 40
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
2 changed files
with
15 additions
and
2 deletions.
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
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 |
---|---|---|
|
@@ -13,11 +13,12 @@ ARG BIN_NAME=consul-esm | |
ENV BIN_NAME=$BIN_NAME | ||
ARG PRODUCT_VERSION | ||
ARG PRODUCT_REVISION | ||
ARG PRODUCT_NAME=$BIN_NAME | ||
ENV PRODUCT_NAME=$BIN_NAME | ||
# TARGETARCH and TARGETOS are set automatically when --platform is provided. | ||
ARG TARGETOS TARGETARCH | ||
|
||
LABEL maintainer="John Eikenberry <[email protected]>" | ||
LABEL maintainer="John Eikenberry <[email protected]>" \ | ||
org.opencontainers.image.licenses="MPL-2.0" | ||
# version label is required for build process | ||
LABEL version=$PRODUCT_VERSION | ||
LABEL revision=$PRODUCT_REVISION | ||
|
@@ -29,6 +30,7 @@ ARG GID=1000 | |
RUN addgroup -g ${GID} ${BIN_NAME} \ | ||
&& adduser -u ${UID} -S -G ${BIN_NAME} ${BIN_NAME} | ||
|
||
COPY LICENSE /usr/share/doc/$PRODUCT_NAME/LICENSE.txt | ||
# where the build system stores the builds | ||
COPY ./dist/$TARGETOS/$TARGETARCH/$BIN_NAME /bin/ | ||
|
||
|