-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
61 lines (47 loc) · 1.23 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
ARG BASE_IMAGE
FROM ${BASE_IMAGE:-debian:stable-slim} AS base_image
ARG AIR_CONNECT_VERSION=1.8.3
RUN mkdir /app/bin -p
COPY app/bin/install-pkg.sh /app/bin/
RUN chmod u+x /app/bin/install-pkg.sh
RUN /app/bin/install-pkg.sh
RUN rm /app/bin/install-pkg.sh
COPY app/bin/download.sh /app/bin/
RUN chmod u+x /app/bin/download.sh
RUN /app/bin/download.sh
RUN rm /app/bin/download.sh
COPY app/bin/install.sh /app/bin/install.sh
RUN chmod u+x /app/bin/install.sh
RUN /app/bin/install.sh
RUN rm /app/bin/install.sh
COPY app/bin/cleanup.sh /app/bin/
RUN chmod u+x /app/bin/cleanup.sh
RUN /app/bin/cleanup.sh
RUN rm /app/bin/cleanup.sh
FROM scratch
COPY --from=base_image / /
LABEL maintainer="GioF71"
LABEL source="https://github.com/GioF71/airconnect-docker"
RUN mkdir -p /app/bin
COPY app/bin/run.sh /app/bin
RUN chmod 755 /app/bin/run.sh
ENV USER_MODE=""
ENV USE_CONFIG_VOLUME=""
ENV PUID=""
ENV PGID=""
ENV PREFER_STATIC=""
ENV AIRCONNECT_MODE=""
ENV CODEC=""
ENV LATENCY=""
ENV CONFIG_FILE_PREFIX=""
ENV LOG_LEVEL_ALL=""
ENV LOG_LEVEL_MAIN=""
ENV LOG_LEVEL_UTIL=""
ENV LOG_LEVEL_UPNP=""
ENV LOG_LEVEL_RAOP=""
ENV AUTO_NETWORK_URL=""
ENV ENABLE_AUTO_NETWORK=""
ENV NETWORK_SELECT=""
ENV NETWORK_USE_IP=""
VOLUME /config
ENTRYPOINT ["/app/bin/run.sh"]