Fix Docker image build by using Ubuntu old-release apt repository

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.
This commit is contained in:
Peter Dave Hello 2021-02-23 20:04:53 +08:00
parent 2fffeeadf1
commit c4e73cfbc7

View File

@ -18,6 +18,9 @@ LABEL maintainer="Danielle Douglas <ddouglas87@gmail.com>"
LABEL maintainer="Lhanjian <lhjay1@foxmail.com>" LABEL maintainer="Lhanjian <lhjay1@foxmail.com>"
LABEL maintainer="K4YT3X <k4yt3x@k4yt3x.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 installation
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y git-core \ && apt-get install -y git-core \