Skip to content

Commit

Permalink
use another method to find the apk
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Apr 7, 2022
1 parent b3b330e commit 69a64c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ WORKDIR /build
USER builder
COPY ./src/cron/APKBUILD .
# generate a RSA key, non-interactive and append to config file, and then build package
# we use find because the package will end up in an arch specific dir (x86_64, arm, ...)
# and this way it'll work every time
# we move it to /build so it's easier to find from the other image
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=x86_64; elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then ARCHITECTURE=arm; elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then ARCHITECTURE=aarch64; else ARCHITECTURE=x86_64; fi \
&& abuild-keygen -n -a && abuild && mv /home/builder/packages/$ARCHITECTURE/cronie-$CRONIE_VERSION-r0.apk /build/apk
RUN abuild-keygen -n -a && abuild && find /home/builder/packages -type f -name '*.apk' -exec mv {} /build/apk \;
# END CRONIE BUILDER

#############################
Expand Down

0 comments on commit 69a64c1

Please sign in to comment.