|
|
|
FROM nvidia/cuda:12.0.1-devel-ubuntu20.04 |
|
|
|
RUN apt-get update && apt-get install -y git wget curl |
|
ENV DEBIAN_FRONTEND=noninteractive |
|
RUN ln -snf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime && echo "Asia/Kolkata" > /etc/timezone |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
RUN apt-get update && \ |
|
apt-get install -y software-properties-common |
|
|
|
|
|
RUN add-apt-repository ppa:deadsnakes/ppa && \ |
|
apt-get update |
|
|
|
|
|
|
|
RUN apt-get install -y python3.11 python3.11-venv python3.11-dev |
|
|
|
|
|
RUN wget https://bootstrap.pypa.io/get-pip.py && \ |
|
python3.11 get-pip.py && \ |
|
rm get-pip.py |
|
|
|
|
|
|
|
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 |
|
|
|
RUN ln -sf /usr/bin/python3.11 /usr/bin/python && \ |
|
ln -sf /usr/bin/python3.11 /usr/bin/python3 |
|
|
|
RUN python --version |
|
RUN python3 --version |
|
RUN pip --version |
|
RUN pip3 --version |
|
|
|
WORKDIR /workspace |
|
RUN git clone https://github.com/C0untFloyd/roop-unleashed |
|
WORKDIR /workspace/roop-unleashed |
|
RUN pip3 install -r requirements.txt |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD ["python", "run.py"] |
|
|