Francesco Capuano commited on
Commit
48d60fd
·
1 Parent(s): b621aad

add: dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Copy the entire project
11
+ COPY . .
12
+
13
+ # Install the package in editable mode
14
+ RUN pip install --no-cache-dir -e .
15
+
16
+ # Create logs directory
17
+ RUN mkdir -p /app/logs
18
+
19
+ # Expose the gRPC port
20
+ EXPOSE 50051
21
+
22
+ # Command to run the server
23
+ CMD ["python", "lerobot/scripts/server/policy_server.py"]