FROM gerbera/gerbera AS base-deps RUN apk add rclone RUN apk add fuse FROM base-deps # Prepare mount points 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