Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Base Image for NextPVR Container & Use of the Label
- FROM debian:latest
- LABEL maintainer="blackerthanmoonlight"
- ## Update the container && Install CA Certificates and add non-free repositories
- RUN apt update && apt install -y \
- ca-certificates \
- apt-transport-https
- RUN sed -i "s/Components: main/Components: main non-free non-free-firmware/" /etc/apt/sources.list.d/debian.sources
- RUN apt update -y
- ## DotNet Runtime 6.0 Install via the package manager for Debian 12
- RUN apt install wget --no-install-recommends -y
- RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
- RUN dpkg -i packages-microsoft-prod.deb
- RUN rm packages-microsoft-prod.deb
- RUN apt update -y && \
- apt install -y aspnetcore-runtime-6.0
- ## Set ASP Net Core URLs
- ENV ASPNETCORE_URLS=http://+:80 DOTNET_RUNNING_IN_CONTAINER=true
- # Install Prerequisites (P2)
- RUN apt install --no-install-recommends --no-install-suggests -y \
- mediainfo \
- libmediainfo-dev \
- libc6 \
- libgdiplus \
- dvb-tools \
- libdvbv5-0 \
- dtv-scan-tables \
- libc6-dev \
- hdhomerun-config \
- ffmpeg \
- unzip
- # The Intel , Nvidia and AMD Drivers
- RUN apt install -y \
- mesa-va-drivers \
- intel-media-va-driver-non-free
- # Allow container to run as Non-root
- RUN groupadd -g 1000 nextpvr; \
- useradd -m -u 1000 -g 1000 -s /sbin/nologin nextpvr
- # NextPVR folder prep
- RUN mkdir /media/nextpvr \
- chown -R nextpvr:nextpvr /media; \
- chmod -R ug+rwx /media
- # Extract Reduced NextPVR File to /media/nextpvr
- COPY ./NPVR64/. /media/nextpvr
- # Set NextPVR Userdata Volume
- VOLUME /media/thenextpvr/userdata/
- # Change to the NextPVR User
- USER nextpvr
- WORKDIR /home/nextpvr
- # Set Environment Variables for where config data should be stored
- WORKDIR /media/nextpvr
- ENV NEXTPVR_DATADIR=/media/nextpvr/data/
- ENV NEXTPVR_DATADIR_USERDATA=/media/thenextpvr/userdata/
- # Exposing HTTP and HTTPS Ports
- EXPOSE 80
- EXPOSE 443
- # Former NextPVR Historical Port
- EXPOSE 8866
- # Change working directory to /media/nextpvr and run the program
- ENTRYPOINT ["dotnet" , "/media/nextpvr/NextPVRServer.dll"]
Advertisement
Add Comment
Please, Sign In to add comment