Raffael-Kultyshev commited on
Commit
172248c
·
verified ·
1 Parent(s): f9640bf

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -9
Dockerfile CHANGED
@@ -1,16 +1,18 @@
1
- FROM python:3.11-slim
2
 
3
- WORKDIR /app
 
 
 
4
 
5
- RUN apt-get update && apt-get install -y \
6
- build-essential \
7
- && rm -rf /var/lib/apt/lists/*
8
 
9
- COPY requirements.txt .
10
- RUN pip install --no-cache-dir -r requirements.txt
11
 
12
- COPY . .
 
13
 
14
  EXPOSE 7860
 
15
 
16
- CMD ["python", "app.py"]
 
1
+ FROM node:18-slim
2
 
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ build-essential cmake git wget ca-certificates \
5
+ libglib2.0-0 libgl1-mesa-glx libegl1-mesa ffmpeg \
6
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
7
 
8
+ RUN git clone --depth 1 https://github.com/huggingface/lerobot-dataset-visualizer.git /lerobot-dataset-visualizer
 
 
9
 
10
+ WORKDIR /lerobot-dataset-visualizer
 
11
 
12
+ RUN npm install
13
+ RUN npm run build
14
 
15
  EXPOSE 7860
16
+ ENV PORT=7860
17
 
18
+ CMD ["npm", "start"]