feat(*): updated Dockerfile and PKGBUILD for 6.0.0-beta.4

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x 2024-10-22 00:00:00 +00:00
parent 1f18b8507d
commit 0fb547589d
No known key found for this signature in database
2 changed files with 8 additions and 6 deletions

View File

@ -1,14 +1,15 @@
# Name: Video2X Dockerfile # Name: Video2X Dockerfile
# Creator: K4YT3X # Creator: K4YT3X
# Date Created: February 3, 2022 # Date Created: February 3, 2022
# Last Modified: October 14, 2024 # Last Modified: October 21, 2024
# stage 1: build the python components into wheels # stage 1: build the python components into wheels
FROM docker.io/archlinux:latest AS builder FROM docker.io/archlinux:latest AS builder
# Install dependencies and create a non-root user # Install dependencies and create a non-root user
RUN pacman -Syy --noconfirm \ RUN pacman -Syy --noconfirm \
base-devel ffmpeg ncnn git cmake make clang pkgconf vulkan-headers openmp spdlog sudo \ base-devel git cmake make clang pkgconf sudo \
ffmpeg ncnn vulkan-headers openmp spdlog opencv \
nvidia-utils vulkan-radeon vulkan-intel vulkan-swrast \ nvidia-utils vulkan-radeon vulkan-intel vulkan-swrast \
&& useradd -m builder \ && useradd -m builder \
&& echo 'builder ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/builder && echo 'builder ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/builder
@ -31,11 +32,12 @@ LABEL maintainer="K4YT3X <i@k4yt3x.com>" \
ENV VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json\ ENV VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json\
:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json\ :/usr/share/vulkan/icd.d/radeon_icd.x86_64.json\
:/usr/share/vulkan/icd.d/intel_icd.x86_64.json :/usr/share/vulkan/icd.d/intel_icd.x86_64.json\
:/usr/share/vulkan/icd.d/lvp_icd.x86_64.json
COPY --from=builder /tmp/video2x.pkg.tar.zst /video2x.pkg.tar.zst COPY --from=builder /tmp/video2x.pkg.tar.zst /video2x.pkg.tar.zst
RUN pacman -Sy --noconfirm ffmpeg ncnn spdlog \ RUN pacman -Sy --noconfirm nvidia-utils vulkan-radeon vulkan-intel vulkan-swrast \
nvidia-utils vulkan-radeon vulkan-intel vulkan-swrast \ ffmpeg ncnn spdlog opencv \
&& pacman -U --noconfirm /video2x.pkg.tar.zst \ && pacman -U --noconfirm /video2x.pkg.tar.zst \
&& rm -rf /video2x.pkg.tar.zst /var/cache/pacman/pkg/* && rm -rf /video2x.pkg.tar.zst /var/cache/pacman/pkg/*

View File

@ -5,7 +5,7 @@ pkgdesc="A machine learning-based lossless video super resolution framework"
arch=('x86_64') arch=('x86_64')
url="https://github.com/k4yt3x/video2x" url="https://github.com/k4yt3x/video2x"
license=('AGPL3') license=('AGPL3')
depends=('ffmpeg' 'ncnn' 'vulkan-driver' 'opencv-cuda' 'spdlog') depends=('ffmpeg' 'ncnn' 'vulkan-driver' 'opencv' 'spdlog')
makedepends=('git' 'cmake' 'make' 'clang' 'pkgconf' 'vulkan-headers' 'openmp') makedepends=('git' 'cmake' 'make' 'clang' 'pkgconf' 'vulkan-headers' 'openmp')
pkgver() { pkgver() {