-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
101 lines (72 loc) · 1.99 KB
/
Dockerfile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
ARG BASE_IMAGE
FROM ${BASE_IMAGE:-debian:stable-slim} AS BASE
ARG USE_APT_PROXY
RUN mkdir -p /app
RUN mkdir -p /app/conf
RUN mkdir -p /app/doc
COPY app/conf/01-apt-proxy /app/conf/
RUN if [ "${USE_APT_PROXY}" = "Y" ]; then \
echo "Builind using apt proxy"; \
cp /app/conf/01-apt-proxy /etc/apt/apt.conf.d/01-apt-proxy; \
cat /etc/apt/apt.conf.d/01-apt-proxy; \
else \
echo "Building without apt proxy"; \
fi
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
RUN apt-get install minidlna -y
RUN if [ "${USE_APT_PROXY}" = "Y" ]; then \
echo "Removing apt proxy configuration ..."; \
rm /etc/apt/apt.conf.d/01-apt-proxy; \
echo ". Done."; \
fi
RUN rm -rf /var/lib/apt/lists/*
COPY README.md /app/doc
COPY LICENSE /app/doc
FROM scratch
COPY --from=base / /
LABEL maintainer="GioF71 <https://github.com/GioF71>"
RUN mkdir -p /app/bin
RUN mkdir -p /app/conf
VOLUME /db
VOLUME /log
ENV MINIDLNA_PORT "8200"
ENV MINIDLNA_NETWORK_INTERFACE ""
ENV MINIDLNA_FRIENDLY_NAME ""
ENV MINIDLNA_DIR_A_1 ""
ENV MINIDLNA_DIR_A_2 ""
ENV MINIDLNA_DIR_A_3 ""
ENV MINIDLNA_DIR_A_4 ""
ENV MINIDLNA_DIR_A_5 ""
ENV MINIDLNA_DIR_V_1 ""
ENV MINIDLNA_DIR_V_2 ""
ENV MINIDLNA_DIR_V_3 ""
ENV MINIDLNA_DIR_V_4 ""
ENV MINIDLNA_DIR_V_5 ""
ENV MINIDLNA_DIR_P_1 ""
ENV MINIDLNA_DIR_P_2 ""
ENV MINIDLNA_DIR_P_3 ""
ENV MINIDLNA_DIR_P_4 ""
ENV MINIDLNA_DIR_P_5 ""
ENV MINIDLNA_DIR_CUSTOM_1 ""
ENV MINIDLNA_DIR_CUSTOM_2 ""
ENV MINIDLNA_DIR_CUSTOM_3 ""
ENV MINIDLNA_DIR_CUSTOM_4 ""
ENV MINIDLNA_DIR_CUSTOM_5 ""
ENV MINIDLNA_MERGE_MEDIA_DIRS ""
ENV MINIDLNA_SERIAL ""
ENV MINIDLNA_MODEL_NAME ""
ENV MINIDLNA_MODEL_NUMBER ""
ENV MINIDLNA_ENABLE_INOTIFY ""
ENV MINIDLNA_NOTIFY_INTERVAL ""
ENV MINIDLNA_STRICT_DLNA ""
ENV MINIDLNA_LOG_LEVEL ""
ENV USER_MODE ""
ENV MINIDLNA_ROOT_CONTAINER ""
ENV MINIDLNA_FORCE_SORT_CRITERIA ""
ENV PUID ""
ENV PGID ""
COPY app/conf/album-art.conf.snippet /app/conf
COPY app/bin/run-minidlna.sh /app/bin/
WORKDIR /app/bin
ENTRYPOINT ["/app/bin/run-minidlna.sh"]