Fix Docker cpu/gpu builds (#667)
This commit is contained in:
@@ -7,9 +7,9 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||||||
|
|
||||||
# Install apt dependencies
|
# Install apt dependencies
|
||||||
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 \
|
||||||
libglib2.0-0 libgl1-mesa-glx libegl1-mesa ffmpeg \
|
libglib2.0-0 libgl1-mesa-glx libegl1-mesa ffmpeg \
|
||||||
speech-dispatcher \
|
speech-dispatcher libgeos-dev \
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Create virtual environment
|
# Create virtual environment
|
||||||
@@ -19,7 +19,7 @@ ENV PATH="/opt/venv/bin:$PATH"
|
|||||||
RUN echo "source /opt/venv/bin/activate" >> /root/.bashrc
|
RUN echo "source /opt/venv/bin/activate" >> /root/.bashrc
|
||||||
|
|
||||||
# Install LeRobot
|
# Install LeRobot
|
||||||
COPY . /lerobot
|
RUN GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/huggingface/lerobot.git /lerobot
|
||||||
WORKDIR /lerobot
|
WORKDIR /lerobot
|
||||||
RUN pip install --upgrade --no-cache-dir pip
|
RUN pip install --upgrade --no-cache-dir pip
|
||||||
RUN pip install --no-cache-dir ".[test, aloha, xarm, pusht, dynamixel]" \
|
RUN pip install --no-cache-dir ".[test, aloha, xarm, pusht, dynamixel]" \
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
sed gawk grep curl wget zip unzip \
|
sed gawk grep curl wget zip unzip \
|
||||||
tcpdump sysstat screen tmux \
|
tcpdump sysstat screen tmux \
|
||||||
libglib2.0-0 libgl1-mesa-glx libegl1-mesa \
|
libglib2.0-0 libgl1-mesa-glx libegl1-mesa \
|
||||||
speech-dispatcher portaudio19-dev \
|
speech-dispatcher portaudio19-dev libgeos-dev \
|
||||||
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/*
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||||||
|
|
||||||
# Install apt dependencies
|
# Install apt dependencies
|
||||||
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 \
|
||||||
libglib2.0-0 libgl1-mesa-glx libegl1-mesa ffmpeg \
|
libglib2.0-0 libgl1-mesa-glx libegl1-mesa ffmpeg \
|
||||||
speech-dispatcher \
|
speech-dispatcher libgeos-dev \
|
||||||
python${PYTHON_VERSION}-dev python${PYTHON_VERSION}-venv \
|
python${PYTHON_VERSION}-dev python${PYTHON_VERSION}-venv \
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ ENV PATH="/opt/venv/bin:$PATH"
|
|||||||
RUN echo "source /opt/venv/bin/activate" >> /root/.bashrc
|
RUN echo "source /opt/venv/bin/activate" >> /root/.bashrc
|
||||||
|
|
||||||
# Install LeRobot
|
# Install LeRobot
|
||||||
COPY . /lerobot
|
RUN GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/huggingface/lerobot.git /lerobot
|
||||||
WORKDIR /lerobot
|
WORKDIR /lerobot
|
||||||
RUN pip install --upgrade --no-cache-dir pip
|
RUN pip install --upgrade --no-cache-dir pip
|
||||||
RUN pip install --no-cache-dir ".[test, aloha, xarm, pusht, dynamixel]"
|
RUN pip install --no-cache-dir ".[test, aloha, xarm, pusht, dynamixel]"
|
||||||
|
|||||||
Reference in New Issue
Block a user