Unable to build custom appdaemon

Can anyone help me with some docker stuff? Ive been trying to figure out how to add /dev/i2c-1 mapping to the appdaemon add-on but can’t figure out how to get it to stick. I have been able to duplicate the image with portainer and add the mapping there but then once I go back into home assistant and restart the addon for any reason the mapping goes away. Can someone help guide me through the process of either editing the existing official appdeamon addon so it has the /dev/i2c-1 mapping to /dev/i2c-1 on system or if it’s not possible to help guide me through doing the same thing with a custom addon version of the appdaemon addon.
I have portainer and am running home assistant supervised ontop of raspbian. I already tried creating a custom version of the appdaemon addon by adding “devices”: ["/dev/i2c-1:/dev/i2c-1:rwm"] to config.json however I ran into an error that said

/bin/bash -o pipefail -c apk add --no-cache --virtual .build-dependencies gcc=9.3.0-r2 libc-dev=0.7.2-r3 libffi-dev=3.3-r2 patch=2.7.6-r6 python3-dev=3.8.5-r0 && apk add --no-cache py3-pip=20.1.1-r0 python3=3.8.5-r0 && pip install --no-cache-dir --prefer-binary --find-links "https://wheels.home-assistant.io/alpine-3.12/$%7BBUILD_ARCH%7D/" -r /tmp/requirements.txt && cd /usr/lib/python3.8/site-packages/ && patch -p1 < /patches/force_recompile.patch && patch -p1 < /patches/hassio.patch && find /usr/local ( -type d -a -name test -o -name tests -o -name 'pycache' ) -o ( -type f -a -name '.pyc' -o -name '.pyo' ) -exec rm -rf '{}' + && apk del --no-cache --purge .build-dependencies' returned a non-zero code: 45

This error is the biggest challenge because I feel if i can get my custom version of appdaemon to work i’ll be able to figure out the rest.