-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_hyperhdr
34 lines (27 loc) · 1.04 KB
/
Dockerfile_hyperhdr
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
#based on https://github.com/awawa-dev/HyperHDR/discussions/594
FROM ubuntu:latest
#add user
RUN groupadd -f hyperhdr && \
adduser -q --uid ${UID:-1000} --gid ${GID:-1000} --disabled-password hyperhdr && \
usermod -a -G dialout hyperhdr && \
chown ${UID:-1000}:${GID:-1000} /home/hyperhdr
#install preconditions
RUN apt update && apt upgrade -y && \
apt install wget gpg sudo curl dpkg lsb-release -y
#add repository
RUN wget -qO /usr/share/keyrings/hyperhdr.public.apt.gpg.key https://awawa-dev.github.io/hyperhdr.public.apt.gpg.key && \
chmod go+r /usr/share/keyrings/hyperhdr.public.apt.gpg.key && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hyperhdr.public.apt.gpg.key] https://awawa-dev.github.io $(lsb_release -cs) main" > /etc/apt/sources.list.d/hyperhdr.list
#install hyperhdr
RUN apt update && \
apt install hyperhdr -y && \
apt-get clean
VOLUME /home/hyperhdr
EXPOSE 19400
EXPOSE 19444
EXPOSE 19445
EXPOSE 8090
EXPOSE 8092
USER hyperhdr
ENTRYPOINT ["hyperhdr"]
CMD ["-v", "--service"]