forked from AntreasAntoniou/GATE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·50 lines (33 loc) · 1.4 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
48
49
50
FROM nvcr.io/nvidia/cuda:12.0.0-cudnn8-devel-ubuntu22.04
SHELL ["/bin/bash", "-c"]
RUN apt update
RUN apt upgrade -y
RUN apt install aptitude tree -y
RUN apt install fish -y
RUN apt install wget -y
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh -O ~/miniconda.sh
RUN bash ~/miniconda.sh -b -p /opt/conda
SHELL ["/opt/conda/bin/conda", "run", "-n", "base", "/bin/bash", "-c"]
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0
RUN conda create -n main python=3.10 -y
SHELL ["/opt/conda/bin/conda", "run", "-n", "main", "/bin/bash", "-c"]
RUN conda install -c conda-forge mamba -y
RUN mamba install -c conda-forge starship jupyterlab black git-lfs tmux glances gh micro bat exa -y
RUN mamba install -c conda-forge git-crypt nvitop -y
RUN echo y | pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
RUN conda init bash
RUN conda init fish
RUN apt-get install git -y
RUN git lfs install
RUN git config --global credential.helper store
RUN cd ; git clone https://github.com/AntreasAntoniou/.tmux.git; ln -s -f .tmux/.tmux.conf; cp .tmux/.tmux.conf.local .
RUN mkdir /app/
ADD requirements.txt /app/
ADD requirements_dev.txt /app/
ADD setup.py /app/
RUN echo y | pip install -r /app/requirements_dev.txt --upgrade
ADD gate/ /app/gate
RUN echo y | pip install /app/[dev]
ENTRYPOINT ["/bin/bash"]