jadechoghari HF Staff commited on
Commit
eb2ea65
·
verified ·
1 Parent(s): 8f1ccfd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -3
Dockerfile CHANGED
@@ -2,14 +2,20 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- COPY backend/requirements.txt /app/requirements.txt
6
- RUN pip install --no-cache-dir -r /app/requirements.txt
 
 
 
7
 
8
- COPY backend /app/backend
 
 
9
 
10
  ENV PYTHONPATH=/app
11
  ENV LEROBOT_ANNOTATE_CACHE=/data/cache
12
  ENV LEROBOT_ANNOTATE_EXPORT=/data/exports
13
 
14
  EXPOSE 7860
 
15
  CMD ["uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt-get update && apt-get install -y \
6
+ git \
7
+ build-essential \
8
+ curl \
9
+ && rm -rf /var/lib/apt/lists/*
10
 
11
+ RUN git clone https://github.com/huggingface/lerobot-annotate.git .
12
+
13
+ RUN pip install --no-cache-dir -r backend/requirements.txt
14
 
15
  ENV PYTHONPATH=/app
16
  ENV LEROBOT_ANNOTATE_CACHE=/data/cache
17
  ENV LEROBOT_ANNOTATE_EXPORT=/data/exports
18
 
19
  EXPOSE 7860
20
+
21
  CMD ["uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "7860"]