Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add jq from official jq docker container #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ RUN \
cp $(ldd /usr/local/bin/clever | grep -o '/.\+\.so[^ ]*' | sort | uniq) /tmp/fakeroot/lib && \
for lib in /tmp/fakeroot/lib/*; do strip --strip-all $lib; done && \
mkdir -p /tmp/fakeroot/bin/ && \
cp /usr/local/bin/clever /tmp/fakeroot/bin/
cp /usr/local/bin/clever /tmp/fakeroot/bin/ && \
mkdir -p /tmp/fakeroot/certs/ && \
cp /etc/ssl/certs/ca-certificates.crt /tmp/fakeroot/certs/ca-certificates.crt

FROM busybox:glibc AS release

Expand All @@ -29,8 +31,13 @@ VOLUME ["/actions"]
WORKDIR /actions

COPY --from=build /tmp/fakeroot/ /
COPY --from=ghcr.io/tarampampam/curl:8.6.0 /bin/curl /usr/bin/curl
COPY --from=ghcr.io/jqlang/jq /jq /usr/bin/jq


## The loader search ld-linux-x86-64.so.2 in /lib64 but the folder does not exist
RUN ln -s lib lib64
RUN \
mkdir -p /etc/ssl/certs && \
ln /certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

ENTRYPOINT ["clever"]