Closed thegecko closed 2 years ago
Solved using derived images which copy the lib files to the proper cross-compiled locations. e.g.:
FROM ghcr.io/prebuild/android-arm64:1
USER 0
COPY arm64/libudev.h ${QEMU_LD_PREFIX}/usr/include/
COPY arm64/libudev.so ${QEMU_LD_PREFIX}/usr/lib/
USER node
This is a great project.
I was wondering what the recommended approach would be for adding a common package to all of the images for a specific setup.
e.g. in my situation, I need prebuildify docker images which include
libudev-dev
.I can see two approaches, both with drawbacks:
arm
based images and the package still isn't found when using:preinstall
command to install the package. This doesn't feel right architecturally, but is easier to maintain without derived docker images. This approach also fails becausesudo
isn't allowed.