49 lines
1.1 KiB
Docker
49 lines
1.1 KiB
Docker
FROM debian:bookworm
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
|
apt-get update && \
|
|
apt-get upgrade -y -q && \
|
|
apt-get install -y wget gpg sudo libpython3.9 && \
|
|
wget -qO /tmp/install.sh https://raw.github.com/hyperion-project/hyperion.ng/master/bin/scripts/docker-compile.sh && \
|
|
chmod +x /tmp/install.sh && \
|
|
apt-get clean
|
|
|
|
|
|
# Flatbuffers Server port
|
|
EXPOSE 19400
|
|
|
|
# JSON-RPC Server Port
|
|
EXPOSE 19444
|
|
|
|
# Protocol Buffers Server port
|
|
EXPOSE 19445
|
|
|
|
# Boblight Server port
|
|
EXPOSE 19333
|
|
|
|
# Philips Hue Entertainment mode (UDP)
|
|
EXPOSE 2100
|
|
|
|
# HTTP and HTTPS Web UI default ports
|
|
EXPOSE 8090
|
|
EXPOSE 8092
|
|
|
|
ENV UID=1000
|
|
ENV GID=1000
|
|
|
|
RUN groupadd -f hyperion
|
|
RUN useradd -r -s /bin/bash -g hyperion hyperion
|
|
RUN bash /tmp/install.sh
|
|
|
|
RUN echo "#!/bin/bash" > /start.sh
|
|
RUN echo "groupmod -g \$2 hyperion" >> /start.sh
|
|
RUN echo "usermod -u \$1 hyperion" >> /start.sh
|
|
RUN echo "chown -R hyperion:hyperion /config" >> /start.sh
|
|
RUN echo "sudo -u hyperion /usr/bin/hyperiond -v --service -u /config" >> /start.sh
|
|
|
|
RUN chmod 777 /start.sh
|
|
|
|
VOLUME /config
|
|
|
|
CMD [ "bash", "-c", "/start.sh ${UID} ${GID}" ]
|