Skip to content

Commit 6dfc7e5

Browse files
committed
Add Dockerfile for Intel XPU
1 parent 798456b commit 6dfc7e5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docker/lerobot-xpu/Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM intel/intel-extension-for-pytorch:2.7.10-xpu
2+
3+
# Configure environment variables
4+
ARG PYTHON_VERSION=3.10
5+
ENV DEBIAN_FRONTEND=noninteractive
6+
ENV MUJOCO_GL="egl"
7+
ENV PATH="/opt/venv/bin:$PATH"
8+
9+
# Install dependencies and set up Python in a single layer
10+
RUN apt-get update && apt-get install -y --no-install-recommends \
11+
software-properties-common \
12+
build-essential cmake git \
13+
libglib2.0-0 libgl1-mesa-glx libegl1-mesa ffmpeg \
14+
speech-dispatcher libgeos-dev \
15+
python${PYTHON_VERSION}-dev \
16+
python${PYTHON_VERSION}-venv \
17+
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
18+
&& python -m venv /opt/venv --system-site-packages \
19+
&& echo "source /opt/venv/bin/activate" >> /root/.bashrc
20+
21+
WORKDIR /lerobot
22+
COPY . ./
23+
24+
RUN /opt/venv/bin/pip install --no-cache-dir ".[pusht]"

0 commit comments

Comments
 (0)