qgallouedec HF Staff commited on
Commit
d60c0fe
·
1 Parent(s): 60c9f07

install git etc

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -32,6 +32,15 @@ FROM python:3.10-slim
32
 
33
  WORKDIR /usr/src/app
34
  COPY . .
 
 
 
 
 
 
 
 
 
35
  RUN pip install --no-cache-dir -r requirements.txt
36
 
37
  # Make sft script executable
 
32
 
33
  WORKDIR /usr/src/app
34
  COPY . .
35
+
36
+ # Install git and clean up to keep the image small
37
+ RUN apt-get update && \
38
+ apt-get install -y git && \
39
+ apt-get clean && \
40
+ rm -rf /var/lib/apt/lists/*
41
+
42
+ # Install required dependencies
43
+ RUN pip install --upgrade pip
44
  RUN pip install --no-cache-dir -r requirements.txt
45
 
46
  # Make sft script executable