24 lines
513 B
Docker
24 lines
513 B
Docker
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
|
|
|
|
# Prepare mount points
|
|
RUN mkdir audio
|
|
RUN mkdir radio
|
|
|
|
# Configuration files copy
|
|
RUN mkdir .config && cd .config && mkdir rclone
|
|
COPY config/rclone.conf .config/rclone/rclone.conf
|
|
COPY config/rygel.conf .config/rygel.conf
|
|
|
|
# Runtime script copy
|
|
COPY bin/wrapper.sh wrapper.sh
|
|
RUN chmod +x wrapper.sh
|
|
|
|
# Runtime processes
|
|
CMD /root/wrapper.sh
|