-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
31 lines (23 loc) · 923 Bytes
/
Dockerfile.template
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
FROM %FROM%
ARG PLEXAMP_BUILD_VERSION
ENV PLEXAMP_BUILD_VERSION=$PLEXAMP_BUILD_VERSION
RUN apt -y update \
&& apt -y upgrade \
&& apt -y install --no-install-recommends bzip2 alsa-utils \
&& apt-get install -q -q -y --no-install-recommends liblo-dev jq
RUN groupadd -g 1001 plexamp \
&& useradd -g 1001 -u 1001 -s /bin/bash -d /home/plexamp -G audio,video,render plexamp
COPY scripts/* usr/local/bin/
RUN mkdir /app \
&& curl -o /tmp/plexamp-linux.tbz2 -L https://plexamp.plex.tv/headless/Plexamp-Linux-headless-${PLEXAMP_BUILD_VERSION}.tar.bz2 \
&& tar -jxvf /tmp/plexamp-linux.tbz2 -C /app \
&& rm -f /tmp/*.tbz2 \
&& echo $PLEXAMP_BUILD_VERSION | sed -e 's/^v//' > /app/plexamp_version \
&& chown -R 1001:1001 /app \
&& chmod 755 /usr/local/bin/* \
&& apt-get -y clean autoclean \
&& apt-get autoremove -y
VOLUME /home/plexamp
USER 1001
WORKDIR /app/plexamp
CMD ["node", "js/index.js"]