Spaces:
Runtime error
Runtime error
shiveshnavin
commited on
Commit
•
72eefcb
1
Parent(s):
504aec4
Update Dockerfile
Browse files- Dockerfile +9 -45
Dockerfile
CHANGED
@@ -1,49 +1,13 @@
|
|
1 |
-
|
2 |
-
FROM nvidia/cuda:12.0.1-devel-ubuntu20.04
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
RUN ln -snf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime && echo "Asia/Kolkata" > /etc/timezone
|
7 |
|
8 |
-
# Set the working directory
|
9 |
-
WORKDIR /
|
10 |
|
11 |
-
#
|
12 |
-
RUN
|
13 |
-
apt-get install -y software-properties-common
|
14 |
|
15 |
-
#
|
16 |
-
|
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 libgl1-mesa-glx ffmpeg
|
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"]
|
|
|
1 |
+
FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-devel
|
|
|
2 |
|
3 |
+
# Copy all files from the current directory to /root/roop-unleashed
|
4 |
+
COPY . /root/roop-unleashed
|
|
|
5 |
|
6 |
+
# Set the working directory
|
7 |
+
WORKDIR /root/roop-unleashed
|
8 |
|
9 |
+
# Run the setup.sh script
|
10 |
+
RUN chmod +x setup.sh && ./setup.sh
|
|
|
11 |
|
12 |
+
# Command to run JupyterLab and the Python script on startup
|
13 |
+
CMD jupyter lab --ip='*' --NotebookApp.token='' --NotebookApp.password='' & python run.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|