28 lines
518 B
Docker
28 lines
518 B
Docker
FROM alpine:latest AS base-deps
|
|
RUN apk add rclone
|
|
RUN apk add gerbera
|
|
RUN apk add fuse
|
|
|
|
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
|