Spaces:
Running
Running
File size: 771 Bytes
f5898c7 37a9361 bc3bc3f 37a9361 6a8d156 bc3bc3f f5898c7 6a8d156 f5898c7 e53eff8 f5898c7 8d2ba48 f5898c7 90f40e4 f5898c7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
FROM node:18-slim
# Install apt dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
wget \
ca-certificates \
libglib2.0-0 \
libgl1-mesa-glx \
libegl1-mesa \
ffmpeg \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Clone the repository with depth 1 (shallow clone)
RUN git clone --depth 1 --branch update_html_visualizer https://github.com/mishig25/lerobot.git /lerobot
# Change to the HTML visualizer directory
WORKDIR /lerobot/lerobot/html_dataset_visualizer
# Install dependencies
RUN npm ci
# Build the application
RUN npm run build
# Expose port 7860
EXPOSE 7860
# Set environment variable for port
ENV PORT=7860
# Start the application
CMD ["npm", "start"] |