mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-28 23:19:11 +00:00
c4e73cfbc7
Ubuntu 19.10 is EOL, but due to Nvidia library compatibility issue, the base image of the Dockerfile wasn't upgraded to newer Ubuntu yet, and a standard apt repository site won't be reachable in this case, which makes the Docker image not able to be built. Before the base image upgrade, a workaround to use old-releases apt repository can make the image be able to be built again.
35 lines
1022 B
Docker
35 lines
1022 B
Docker
# Name: Video2X Dockerfile
|
|
# Creator: Danielle Douglas
|
|
# Date Created: Unknown
|
|
# Last Modified: January 14, 2020
|
|
|
|
# Editor: Lhanjian
|
|
# Last Modified: May 24, 2020
|
|
|
|
# Editor: K4YT3X
|
|
# Last Modified: June 13, 2020
|
|
|
|
# using Ubuntu LTS 19.10
|
|
# Ubuntu 20.x is incompatible with Nvidia libraries
|
|
FROM ubuntu:19.10
|
|
|
|
# file mainainter labels
|
|
LABEL maintainer="Danielle Douglas <ddouglas87@gmail.com>"
|
|
LABEL maintainer="Lhanjian <lhjay1@foxmail.com>"
|
|
LABEL maintainer="K4YT3X <k4yt3x@k4yt3x.com>"
|
|
|
|
RUN sed -i 's/archive.ubuntu.com/old-releases.ubuntu.com/g' sources.list
|
|
RUN sed -i 's/security.ubuntu.com/old-releases.ubuntu.com/g' sources.list
|
|
|
|
# run installation
|
|
RUN apt-get update \
|
|
&& apt-get install -y git-core \
|
|
&& git clone --recurse-submodules --progress https://github.com/k4yt3x/video2x.git /tmp/video2x/video2x \
|
|
&& bash -e /tmp/video2x/video2x/src/video2x_setup_ubuntu.sh /
|
|
|
|
WORKDIR /host
|
|
ENTRYPOINT ["python3.8", "/video2x/src/video2x.py"]
|
|
|
|
ENV NVIDIA_DRIVER_CAPABILITIES all
|
|
ENV DEBIAN_FRONTEND teletype
|