visualize_dataset / Dockerfile
mishig's picture
mishig HF Staff
Update Dockerfile
f5898c7 verified
raw
history blame
661 Bytes
FROM node:18-slim
# Install git and clean up in one step to keep the image size down
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Clone the repository with depth 1 (shallow clone)
RUN git clone --depth 1 -b update_html_visualizer https://github.com/mishig25/lerobot.git .
# Change to the HTML visualizer directory
WORKDIR /app/lerobot/html_dataset_visualizer
# Install production dependencies only
RUN npm ci --production
# Expose port 7860
EXPOSE 7860
# Set environment variable for port
ENV PORT=7860
# Start the application
CMD ["npm", "start"]