-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
73 lines (49 loc) · 1.58 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
FROM debian:stable-slim AS BASE
RUN apt-get update
RUN apt-get install -y build-essential autoconf automake libtool pkg-config
RUN apt-get install -y libupnp-dev libgstreamer1.0-dev \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
gstreamer1.0-libav
RUN apt-get install -y gstreamer1.0-alsa
RUN apt-get install -y gstreamer1.0-pulseaudio
RUN apt-get install -y --no-install-recommends alsa-utils
RUN apt-get install -y --no-install-recommends pulseaudio-utils
RUN apt-get install -y git
RUN apt-get install -y uuid-runtime
RUN mkdir -p /app/source
WORKDIR /app/source
RUN git clone https://github.com/hzeller/gmrender-resurrect.git
WORKDIR /app/source/gmrender-resurrect
RUN ./autogen.sh
RUN ./configure
RUN make
RUN make install
WORKDIR /
RUN rm -rf /app/source
RUN apt-get remove -y build-essential autoconf automake libtool pkg-config
RUN apt-get remove -y git
RUN apt-get autoremove -y
RUN rm -rf /var/lib/apt/lists/*
FROM scratch
COPY --from=BASE / /
LABEL maintainer="GioF71"
LABEL source="https://github.com/GioF71/gmrender-resurrect-docker"
VOLUME /config
ENV FRIENDLY_NAME ""
ENV UUID ""
ENV GSTOUT_AUDIOSINK ""
ENV GSTOUT_AUDIODEVICE ""
ENV GSTOUT_INITIAL_VOLUME_DB ""
ENV USER_MODE ""
ENV PUID ""
ENV PGID ""
ENV AUDIO_GID ""
ENV CARD_NAME ""
ENV CARD_INDEX ""
RUN mkdir -p /app/assets
COPY app/assets/pulse-client-template.conf /app/assets/pulse-client-template.conf
RUN mkdir -p /app/bin
COPY app/bin/run.sh /app/bin
RUN chmod 755 /app/bin/*sh
ENTRYPOINT ["/app/bin/run.sh"]