Revert "Remove apt-installed python"

This reverts commit ec96ba0bb0.
This commit is contained in:
Simon Alibert 2024-05-22 19:06:23 +02:00
parent 23cad6dcd9
commit 7bf584a3a9
1 changed files with 6 additions and 1 deletions

View File

@ -13,8 +13,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
sed gawk grep curl wget \
tcpdump sysstat screen \
libglib2.0-0 libgl1-mesa-glx libegl1-mesa ffmpeg \
python${PYTHON_VERSION} python${PYTHON_VERSION}-venv \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Setup `python`
RUN ln -s /usr/bin/python${PYTHON_VERSION} /usr/bin/python
# Install gh cli tool
RUN (type -p wget >/dev/null || (apt update && apt-get install wget -y)) \
&& mkdir -p -m 755 /etc/apt/keyrings \
@ -35,7 +39,8 @@ ENV PATH="/root/miniconda3/bin/:$PATH"
# Setup conda & create env
RUN conda init bash \
&& . ~/.bashrc \
&& conda create -y -n lerobot python=${PYTHON_VERSION}
&& conda create -y -n lerobot python=3.10 \
&& conda activate lerobot
# Install poetry
RUN curl -sSL https://install.python-poetry.org | python -