-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (59 loc) · 1.65 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM --platform=linux/amd64 ubuntu:24.04
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
sudo \
openssh-client \
build-essential \
cmake \
git \
curl \
vim \
ca-certificates \
libjpeg-dev \
libglm-dev \
libegl1-mesa-dev \
ninja-build \
xorg-dev \
freeglut3-dev \
pkg-config \
wget \
zip \
lcov\
libhdf5-dev \
libomp-dev \
unzip \
make \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
llvm \
libncurses5-dev \
libncursesw5-dev \
xz-utils \
tk-dev \
libffi-dev \
liblzma-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN echo 'ubuntu ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
USER ubuntu
ENV HOME="/home/ubuntu"
RUN mkdir -p ${HOME}
WORKDIR ${HOME}
RUN git clone --depth=1 https://github.com/pyenv/pyenv.git .pyenv
ENV PYENV_ROOT="${HOME}/.pyenv"
ENV PATH="${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
RUN echo "export PYENV_ROOT=\"\$HOME/.pyenv\"" >> ${HOME}/.bashrc && \
echo "[[ -d \$PYENV_ROOT/bin ]] && export PATH="\$PYENV_ROOT/bin:\$PATH"" >> ${HOME}/.bashrc && \
echo "eval \"\$(pyenv init -)\"" >> ${HOME}/.bashrc && \
echo "\"$(pyenv virtualenv-init -)\"" >> ${HOME}/.bashrc
RUN pyenv install 3.9
RUN pyenv global 3.9
RUN git clone --recursive https://github.com/facebookresearch/habitat-sim.git && \
cd ${HOME}/habitat-sim && \
git checkout v0.3.2 && \
pip install --upgrade pip && pip install -r requirements.txt && pip cache purge && \
python setup.py install --audio --headless && \
cd ${HOME} && \
rm -rf habitat-sim