fix apks installation

This commit is contained in:
Pavel 2022-10-28 15:01:50 +03:00
parent 3902d3fc47
commit b430991874
2 changed files with 11 additions and 1 deletions

View File

@ -12,7 +12,7 @@ RUN set -eux; \
echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \ echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
chown -R builder:abuild /tmp/aports && \ chown -R builder:abuild /tmp/aports && \
sudo -u builder sh -c 'abuild checksum && abuild-keygen -an && abuild -r' && \ sudo -u builder sh -c 'abuild checksum && abuild-keygen -an && abuild -r' && \
find /home/builder -iname './*.apk' -exec apk add --allow-untrusted --no-cache {} \;; \ find /home/builder -type f -name '*.apk' -exec apk add --allow-untrusted --no-cache {} \;; \
sudo -u builder sh -c 'abuild clean && abuild cleancache' && \ sudo -u builder sh -c 'abuild clean && abuild cleancache' && \
apk del --no-network .build-deps && \ apk del --no-network .build-deps && \
deluser builder && \ deluser builder && \

View File

@ -0,0 +1,10 @@
#include <unistd.h>
#include <fcntl.h>
int main() {
// TODO: Use this code to test resulting images.
// Should not call faccessat2 under the hood.
faccessat(0, "/", R_OK, AT_EACCESS);
return 0;
}