-
Notifications
You must be signed in to change notification settings - Fork 783
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
14 additions
and
0 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 |
---|---|---|
|
@@ -16,11 +16,13 @@ ARG PRODUCT_REVISION | |
ARG PRODUCT_NAME=$BIN_NAME | ||
# TARGETARCH and TARGETOS are set automatically when --platform is provided. | ||
ARG TARGETOS TARGETARCH | ||
ENV PRODUCT_NAME=$BIN_NAME | ||
|
||
LABEL maintainer="Consul Team <[email protected]>" | ||
# version label is required for build process | ||
LABEL version=$PRODUCT_VERSION | ||
LABEL revision=$PRODUCT_REVISION | ||
LABEL licenses="MPL-2.0" | ||
|
||
# These are the defaults, this makes them explicit and overridable. | ||
ARG UID=100 | ||
|
@@ -31,6 +33,7 @@ RUN addgroup -g ${GID} ${BIN_NAME} \ | |
|
||
# where the build system stores the builds | ||
COPY ./dist/$TARGETOS/$TARGETARCH/$BIN_NAME /bin/ | ||
COPY LICENSE /usr/share/doc/$PRODUCT_NAME/LICENSE.txt | ||
|
||
# entrypoint | ||
COPY ./.release/docker-entrypoint.sh /bin/ | ||
|