jackvial commited on
Commit
df08f1d
1 Parent(s): f162dd3
Files changed (1) hide show
  1. Dockerfile +32 -0
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Configure image
2
+ ARG PYTHON_VERSION=3.10
3
+
4
+ FROM python:${PYTHON_VERSION}-slim
5
+ ARG PYTHON_VERSION
6
+ ARG DEBIAN_FRONTEND=noninteractive
7
+
8
+ # Install apt dependencies
9
+ RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ build-essential cmake git wget \
11
+ libglib2.0-0 libgl1-mesa-glx libegl1-mesa ffmpeg \
12
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Create virtual environment
15
+ RUN ln -s /usr/bin/python${PYTHON_VERSION} /usr/bin/python
16
+ RUN python -m venv /opt/venv
17
+ ENV PATH="/opt/venv/bin:$PATH"
18
+ RUN echo "source /opt/venv/bin/activate" >> /root/.bashrc
19
+
20
+ RUN useradd -m -u 1000 user
21
+
22
+ # Install LeRobot
23
+ RUN git clone --branch main https://github.com/huggingface/lerobot.git /lerobot
24
+ WORKDIR /lerobot
25
+ RUN pip install --upgrade --no-cache-dir pip
26
+ RUN pip install --no-cache-dir "." \
27
+ --extra-index-url https://download.pytorch.org/whl/cpu
28
+ RUN pip install --no-cache-dir flask
29
+
30
+ COPY --chown=user . /lerobot
31
+ CMD ["python", "lerobot/scripts/visualize_dataset_html.py", "--repo-id", "jackvial/koch_pick_and_place_pistachio_8_e100", "--host", "0.0.0.0", "--port", "7860", "--output-dir", "/tmp/outputs/visualize_dataset_html/jackvial/koch_pick_and_place_pistachio_8_e100"]
32
+