-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (25 loc) · 746 Bytes
/
Copy pathDockerfile
File metadata and controls
37 lines (25 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ARG BASE_IMAGE
FROM ${BASE_IMAGE} AS base
RUN apt-get update && apt-get install mpc -y && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /root/.mpd
RUN mkdir -p /db
RUN mkdir -p /music
RUN mkdir -p /playlists
RUN mkdir /app/bin -p
RUN mkdir /app/assets -p
RUN mkdir /app/conf -p
COPY app/assets/mpd-template.conf /app/assets/
#EXPOSE 6600
EXPOSE 8000
ENV MPD_RADIO_STREAMER_HTTPD_ALWAYS_ON ""
ENV MPD_RADIO_STREAMER_HTTPD_TAGS ""
ENV MPD_RADIO_STREAMER_HTTPD_FORMAT ""
ENV MPD_RADIO_STREAMER_URL ""
ENV MPD_RADIO_STREAMER_NAME ""
ENV STARTUP_DELAY_SEC 0
COPY app/bin/run-mpd.sh /app/bin/run-mpd.sh
RUN chmod 755 /app/bin/run-mpd.sh
RUN chmod 755 /app/assets
RUN mkdir -p /app/doc
COPY README.md /app/doc/
ENTRYPOINT ["/app/bin/run-mpd.sh"]