Monorepo for Aesthetic.Computer
aesthetic.computer
1FROM fedora:latest
2
3ENV DISPLAY=:99
4ENV DEBIAN_FRONTEND=noninteractive
5
6# Install necessary repos and packages
7RUN dnf install -y \
8 https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
9 https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm && \
10 dnf install -y \
11 chromium \
12 ffmpeg \
13 ffmpeg-libs \
14 Xvfb \
15 xorg-x11-server-Xvfb \
16 pulseaudio \
17 pulseaudio-utils \
18 alsa-utils \
19 unclutter \
20 nginx && \
21 dnf clean all
22
23# Create HLS output directory
24RUN mkdir -p /var/www/html/hls && chmod 777 /var/www/html/hls
25
26# Copy files
27COPY entrypoint.sh /entrypoint.sh
28RUN chmod +x /entrypoint.sh
29
30COPY nginx.conf /etc/nginx/nginx.conf
31COPY player.html /var/www/html/index.html
32
33EXPOSE 80
34
35CMD ["/entrypoint.sh"]