-
Notifications
You must be signed in to change notification settings - Fork 94
/
Dockerfile
47 lines (37 loc) · 1.29 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM nvidia/cuda:12.0.0-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV CUDA_INSTALL_PATH=/usr/local/cuda/
ENV CUDACXX=${CUDA_INSTALL_PATH}/bin/nvcc
WORKDIR /build
RUN apt-get update -y && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update -y
RUN apt-get install -y git \
build-essential \
libssl-dev \
wget \
curl \
python3.9 \
python3.9-distutils \
python3.9-venv \
python3.9-dev \
nano
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 && \
update-alternatives --install /usr/bin/python python /usr/bin/python3.9 2 && \
update-alternatives --set python /usr/bin/python3.9 && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2 && \
update-alternatives --set python3 /usr/bin/python3.9
RUN python3.9 -m ensurepip --default-pip --upgrade && \
pip install --upgrade pip
RUN pip install --pre torch==2.0.0
RUN mkdir /syncback
WORKDIR /kernl
COPY ./setup.py ./setup.py
COPY ./setup.cfg ./setup.cfg
COPY ./requirements.txt ./requirements.txt
COPY ./README.md ./README.md
COPY ./src/kernl/__init__.py ./src/kernl/__init__.py
RUN pip install -e .
COPY ./ ./