abc-dev commited on
Commit
7dc7394
·
verified ·
1 Parent(s): 3bd166b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +35 -0
Dockerfile ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-slim
2
+
3
+ # Install apt dependencies
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ build-essential \
6
+ cmake \
7
+ git \
8
+ wget \
9
+ ca-certificates \
10
+ libglib2.0-0 \
11
+ libgl1-mesa-glx \
12
+ libegl1-mesa \
13
+ ffmpeg \
14
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
15
+
16
+ # Clone the repository with depth 1 (shallow clone)
17
+ RUN git clone https://github.com/alanionita/hf-lerobot-hackathon-dataset-tool.git /dataset-tool
18
+
19
+ # Change to the HTML visualizer directory
20
+ WORKDIR /dataset-tool
21
+
22
+ # Install dependencies
23
+ RUN npm ci
24
+
25
+ # Build the application
26
+ RUN npm run build
27
+
28
+ # Expose port 7860
29
+ EXPOSE 7860
30
+
31
+ # Set environment variable for port
32
+ ENV PORT=7860
33
+
34
+ # Start the application
35
+ CMD ["npm", "start"]