FROM nvidia/cuda:11.6.2-cudnn8-devel-ubuntu18.04 RUN apt update RUN apt install git python3 python3-pip -y RUN pip3 install torch RUN pip3 install --upgrade pip RUN pip3 install numpy opencv-python RUN apt install libsm6 libxext6 libxrender-dev -y RUN ln -s /usr/bin/python3 /usr/bin/python RUN ln -s /usr/bin/pip3 /usr/bin/pip RUN pip install basicsr RUN pip install facexlib RUN pip install gfpgan RUN git clone https://github.com/xinntao/Real-ESRGAN.git WORKDIR /Real-ESRGAN RUN pip install -r requirements.txt RUN python setup.py develop RUN apt install wget -y RUN wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth -P experiments/pretrained_models RUN mkdir -p inputs results RUN DEBIAN_FRONTEND="noninteractive" apt-get install python3-opencv -y VOLUME /Real-ESRGAN/inputs VOLUME /Real-ESRGAN/results WORKDIR /usr/local/lib/python3.6/dist-packages/facexlib/weights/ RUN wget https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth WORKDIR /usr/local/lib/python3.6/dist-packages/gfpgan/weights/ RUN wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth WORKDIR /Real-ESRGAN