FROM gerbera/gerbera AS base-deps RUN apk add rclone RUN apk add fuse3 FROM base-deps # Prepare mount points RUN mkdir /content WORKDIR /content RUN mkdir audio RUN mkdir radio # Runtime script copy WORKDIR /root COPY bin/wrapper.sh wrapper.sh RUN chmod +x wrapper.sh # Configuration files copy RUN mkdir .config WORKDIR /root/.config RUN mkdir rclone COPY config/rclone.conf rclone/rclone.conf RUN mkdir gerbera COPY config/config.xml gerbera/config.xml # Runtime processes CMD /root/wrapper.sh