Skip to content

Commit

Permalink
Merge pull request #28 from jpculp/script-licenses
Browse files Browse the repository at this point in the history
Add licenses for `script`
  • Loading branch information
jpculp committed Mar 15, 2022
2 parents c04e1d5 + ce51546 commit 346fd21
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ RUN \
|| { cat config.log; exit 1; }
RUN make -j`nproc` script
RUN cp script /opt/script
RUN \
mkdir -p /usr/share/licenses/util-linux && cp -p \
Documentation/licenses/COPYING.BSD-4-Clause-UC \
Documentation/licenses/COPYING.GPL-2.0-or-later \
Documentation/licenses/COPYING.LGPL-2.1-or-later \
/usr/share/licenses/util-linux

FROM public.ecr.aws/amazonlinux/amazonlinux:2

Expand All @@ -43,6 +49,7 @@ RUN : \
LABEL "org.opencontainers.image.version"="$IMAGE_VERSION"

COPY --from=builder /opt/script /usr/bin/
COPY --from=builder /usr/share/licenses/util-linux /usr/share/licenses/util-linux
# Validate script binary
RUN /usr/bin/script &>/dev/null

Expand Down

0 comments on commit 346fd21

Please sign in to comment.