-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (43 loc) · 1.07 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
FROM nvidia/cuda:12.1.0-cudnn8-devel-ubuntu22.04
# git lfs
RUN sudo apt update && sudo apt install -y git-lfs
RUN git lfs install
# tmux
RUN touch ~/.no_auto_tmux
# python 3 build deps
RUN timedatectl set-timezone Europe/Madrid
RUN apt-get update && apt-get install -y build-essential \
zlib1g-dev \
libncurses5-dev \
libgdbm-dev \
libnss3-dev \
libssl-dev \
libreadline-dev \
libffi-dev \
libsqlite3-dev \
libbz2-dev \
liblzma-dev \
tk-dev \
libdb-dev \
libexpat1-dev \
wget \
curl \
llvm \
libncursesw5-dev \
xz-utils \
tk-dev \
libxml2-dev \
libxmlsec1-dev \
libffi-dev \
liblzma-dev
# install pyenv
RUN curl https://pyenv.run | bash
# add to path
RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
RUN echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
RUN echo 'eval "$(pyenv init -)"' >> ~/.bashrc
RUN echo 'alias watch-gpu="watch -n .1 nvidia-smi"' >> ~/.bashrc
RUN . ~/.bashrc
# install python 3.11
RUN pyenv install 3.11
RUN pyenv global 3.11