-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add license file to linux distribution and docker image (#365)
- Loading branch information
Showing
2 changed files
with
14 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
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,14 +13,15 @@ ARG BIN_NAME=envconsul | |
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]>" | ||
# 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 +32,8 @@ RUN addgroup -g ${GID} ${BIN_NAME} \ | |
|
||
# where the build system stores the builds | ||
COPY ./dist/$TARGETOS/$TARGETARCH/$BIN_NAME /bin/ | ||
# copy the license file to the required directory | ||
COPY LICENSE /usr/share/doc/$PRODUCT_NAME/LICENSE.txt | ||
|
||
# entrypoint | ||
COPY ./.release/docker-entrypoint.sh /bin/ | ||
|