diff --git a/Dockerfile b/Dockerfile index 9b70eb3..36c280e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ USER build WORKDIR /home/build # Auto-fetch GPG keys (for checking signatures): +# hadolint ignore=DL3003 RUN mkdir .gnupg && \ touch .gnupg/gpg.conf && \ echo "keyserver-options auto-key-retrieve" > .gnupg/gpg.conf && \ @@ -23,4 +24,5 @@ COPY run.sh /run.sh # Build the package WORKDIR /pkg -CMD ["/bin/bash", "/run.sh"] +CMD ["/run.sh"] +ENTRYPOINT ["/bin/bash", "--login", "-c"] diff --git a/run.sh b/run.sh index 5db8d58..f838643 100755 --- a/run.sh +++ b/run.sh @@ -6,6 +6,12 @@ set -e cp -r /pkg /tmp/pkg cd /tmp/pkg +# Install checkdepends +# shellcheck disable=1091 +. ./PKGBUILD +# shellcheck disable=2154 +echo "${checkdepends[@]}" | xargs paru -Sy --noconfirm + # Do the actual building. Paru will fetch all dependencies for us (including # AUR dependencies) and then build the package. paru -U --noconfirm