initial commit
This commit is contained in:
51
Dockerfile
Normal file
51
Dockerfile
Normal file
@@ -0,0 +1,51 @@
|
||||
FROM debian:bullseye
|
||||
|
||||
RUN export DEBIAN_FRONTEND=noninteractive && \
|
||||
apt-get update && \
|
||||
apt-get install -y wget gpg sudo libpython3.9 && \
|
||||
wget -qO /tmp/hyperion.pub.key https://apt.hyperion-project.org/hyperion.pub.key && \
|
||||
gpg --dearmor -o /usr/share/keyrings/hyperion.pub.gpg /tmp/hyperion.pub.key && \
|
||||
echo "deb [signed-by=/usr/share/keyrings/hyperion.pub.gpg] https://apt.hyperion-project.org/ bullseye main" > /etc/apt/sources.list.d/hyperion.list && \
|
||||
echo "deb [signed-by=/usr/share/keyrings/hyperion.nightly.pub.gpg] https://nightly.apt.hyperion-project.org/ bullseye main" > /etc/apt/sources.list.d/hyperion.nightly.list.disabled && \
|
||||
apt-get update && \
|
||||
apt-get install -y hyperion && \
|
||||
apt-get -y --purge autoremove gpg && \
|
||||
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 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}" ]
|
||||
Reference in New Issue
Block a user