forked from k4yt3x/video2x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated the Dockerfiles and the pipeline for 5.0.0-beta5
- Loading branch information
Showing
4 changed files
with
33 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# Name: Video2X Dockerfile (CUDA) | ||
# Name: Video2X Dockerfile | ||
# Creator: K4YT3X | ||
# Date Created: February 3, 2022 | ||
# Last Modified: March 20, 2022 | ||
# Last Modified: March 28, 2022 | ||
|
||
# stage 1: build the python components into wheels | ||
FROM docker.io/nvidia/cuda:11.6.0-runtime-ubuntu20.04 AS builder | ||
FROM docker.io/nvidia/vulkan:1.2.133-450 AS builder | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
COPY . /video2x | ||
WORKDIR /video2x | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
python3-pip python3-opencv python3-pil \ | ||
python3-dev libvulkan-dev glslang-dev glslang-tools \ | ||
python3.8 python3-pip python3-opencv python3-pil \ | ||
python3.8-dev libvulkan-dev glslang-dev glslang-tools \ | ||
build-essential swig \ | ||
&& pip wheel -w /wheels wheel pdm-pep517 . | ||
|
||
# stage 2: install wheels into the final image | ||
FROM docker.io/nvidia/cuda:11.6.0-runtime-ubuntu20.04 | ||
FROM docker.io/nvidia/vulkan:1.2.133-450 | ||
LABEL maintainer="K4YT3X <[email protected]>" \ | ||
org.opencontainers.image.source="https://github.com/k4yt3x/video2x" \ | ||
org.opencontainers.image.description="A lossless video/GIF/image upscaler" | ||
|
@@ -31,12 +31,13 @@ COPY --from=builder /wheels /wheels | |
COPY . /video2x | ||
WORKDIR /video2x | ||
RUN apt-get install -y --no-install-recommends \ | ||
python3-pip python3-dev \ | ||
python3-pip python3.8-dev \ | ||
python3-opencv python3-pil \ | ||
mesa-vulkan-drivers cuda-drivers ffmpeg \ | ||
&& pip install --no-cache-dir --no-index -f /wheels . \ | ||
&& apt-get clean \ | ||
&& rm -rf /wheels /video2x /var/lib/apt/lists/* | ||
|
||
WORKDIR /host | ||
ENTRYPOINT ["/usr/bin/python3", "-m", "video2x"] | ||
USER nobody | ||
ENTRYPOINT ["/usr/bin/python3.8", "-m", "video2x"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# Last Modified: March 18, 2022 | ||
|
||
# stage: build python components into heels | ||
FROM docker.io/library/python:3.10.2-alpine3.15 AS builder | ||
FROM docker.io/library/python:3.10.4-alpine3.15 AS builder | ||
COPY . /video2x | ||
WORKDIR /video2x | ||
RUN apk add --no-cache \ | ||
|
@@ -15,7 +15,7 @@ RUN apk add --no-cache \ | |
&& pip wheel -w /wheels wheel pdm-pep517 . | ||
|
||
# stage 2: install wheels into final image | ||
FROM docker.io/library/python:3.10.2-alpine3.15 | ||
FROM docker.io/library/python:3.10.4-alpine3.15 | ||
LABEL maintainer="K4YT3X <[email protected]>" \ | ||
org.opencontainers.image.source="https://github.com/k4yt3x/video2x" \ | ||
org.opencontainers.image.description="A lossless video/GIF/image upscaler" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters