FROM debian:latest AS base-deps
RUN apt-get update
RUN apt-get install -y rclone
RUN apt-get install -y rygel
RUN apt-get install -y fuse
FROM base-deps
WORKDIR /root
RUN mkdir audio
RUN mkdir .config && cd .config && mkdir rclone
# Configuration files copy
COPY rclone.conf .config/rclone/rclone.conf
COPY rygel.conf .config/rygel.conf
# Runtime script copy
COPY wrapper.sh wrapper.sh
RUN chmod +x wrapper.sh
EXPOSE 5001
EXPOSE 1900
EXPOSE 65530
CMD /root/wrapper.sh