-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
31 lines (22 loc) · 912 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM nvidia/cuda:12.0.1-cudnn8-devel-ubuntu20.04
ENV DEBIAN_FRONTEND=noninteractive
# Install software-properties-common to add repositories
RUN apt update && apt install -y software-properties-common
# Add deadsnakes PPA for newer Python versions
RUN add-apt-repository ppa:deadsnakes/ppa
# Install Python (e.g., Python 3.9) and pip
RUN apt update && apt install -y python3.9 python3.9-distutils python3.9-venv python3-pip
# Update pip for Python 3.9
RUN python3.9 -m pip install --upgrade pip
# Set Python 3.9 as the default Python version
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2
# install git
RUN apt install git -y
# clone repository
RUN mkdir -p /lps
RUN git clone https://github.com/jw9730/lps.git /lps
WORKDIR /lps
# install dependencies
RUN bash install.sh
CMD ["/bin/bash"]