Fix paths

This commit is contained in:
Simon Alibert 2024-05-22 18:10:46 +02:00
parent d6135bff61
commit bf169bf528
1 changed files with 16 additions and 7 deletions

View File

@ -8,11 +8,11 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential cmake \ build-essential cmake \
git git-lfs openssh-client \ git git-lfs openssh-client \
nano vim ffmpeg \ nano vim less util-linux \
htop atop nvtop \ htop atop nvtop \
sed gawk grep curl wget \ sed gawk grep curl wget \
tcpdump sysstat screen \ tcpdump sysstat screen \
libglib2.0-0 libgl1-mesa-glx libegl1-mesa \ libglib2.0-0 libgl1-mesa-glx libegl1-mesa ffmpeg \
python${PYTHON_VERSION} python${PYTHON_VERSION}-venv \ python${PYTHON_VERSION} python${PYTHON_VERSION}-venv \
&& apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get clean && rm -rf /var/lib/apt/lists/*
@ -26,16 +26,25 @@ RUN (type -p wget >/dev/null || (apt update && apt-get install wget -y)) \
&& chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt update \ && apt update \
&& apt install gh -y && apt install gh -y \
&& apt clean && rm -rf /var/lib/apt/lists/*
# Install miniconda # Install miniconda
RUN mkdir -p /miniconda3 \ RUN mkdir -p /root/miniconda3 \
&& wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /miniconda3/miniconda.sh \ && wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /root/miniconda3/miniconda.sh \
&& bash /miniconda3/miniconda.sh -b -u -p /miniconda3 \ && bash /root/miniconda3/miniconda.sh -b -u -p /root/miniconda3 \
&& rm -rf /miniconda3/miniconda.sh && rm -rf /root/miniconda3/miniconda.sh
ENV PATH="/root/miniconda3/bin/:$PATH"
# Setup conda & create env
RUN conda init bash \
&& . ~/.bashrc \
&& conda create -y -n lerobot python=3.10 \
&& conda activate lerobot
# Install poetry # Install poetry
RUN curl -sSL https://install.python-poetry.org | python - RUN curl -sSL https://install.python-poetry.org | python -
ENV PATH="/root/.local/bin:$PATH"
# Set EGL as the rendering backend for MuJoCo # Set EGL as the rendering backend for MuJoCo
ENV MUJOCO_GL="egl" ENV MUJOCO_GL="egl"