3v324v23
commited on
Commit
·
ff9da79
0
Parent(s):
Initi:
Browse files- Dockerfile +49 -0
Dockerfile
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the base image with CUDA and Ubuntu
|
2 |
+
FROM nvidia/cuda:12.0.1-devel-ubuntu20.04
|
3 |
+
|
4 |
+
RUN apt-get update && apt-get install -y git wget curl
|
5 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
+
RUN ln -snf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime && echo "Asia/Kolkata" > /etc/timezone
|
7 |
+
|
8 |
+
# Set the working directory in the container
|
9 |
+
WORKDIR /app
|
10 |
+
|
11 |
+
# Install necessary dependencies for adding repositories
|
12 |
+
RUN apt-get update && \
|
13 |
+
apt-get install -y software-properties-common
|
14 |
+
|
15 |
+
# Add the deadsnakes PPA for Python 3.11
|
16 |
+
RUN add-apt-repository ppa:deadsnakes/ppa && \
|
17 |
+
apt-get update
|
18 |
+
|
19 |
+
# Install Python 3.11 and pip
|
20 |
+
# Install Python 3.11 and development packages
|
21 |
+
RUN apt-get install -y python3.11 python3.11-venv python3.11-dev
|
22 |
+
|
23 |
+
# Download and install the latest pip using get-pip.py
|
24 |
+
RUN wget https://bootstrap.pypa.io/get-pip.py && \
|
25 |
+
python3.11 get-pip.py && \
|
26 |
+
rm get-pip.py
|
27 |
+
|
28 |
+
|
29 |
+
# Set the default Python version to 3.11
|
30 |
+
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
|
31 |
+
|
32 |
+
RUN ln -sf /usr/bin/python3.11 /usr/bin/python && \
|
33 |
+
ln -sf /usr/bin/python3.11 /usr/bin/python3
|
34 |
+
|
35 |
+
RUN python --version
|
36 |
+
RUN python3 --version
|
37 |
+
RUN pip --version
|
38 |
+
RUN pip3 --version
|
39 |
+
|
40 |
+
WORKDIR /workspace
|
41 |
+
RUN git clone https://github.com/C0untFloyd/roop-unleashed
|
42 |
+
WORKDIR /workspace/roop-unleashed
|
43 |
+
RUN pip3 install -r requirements.txt
|
44 |
+
|
45 |
+
# Expose port 7860
|
46 |
+
EXPOSE 7860
|
47 |
+
|
48 |
+
# Set the entrypoint to run the application
|
49 |
+
CMD ["python", "run.py"]
|