Laborator commited on
Commit
8e081da
·
1 Parent(s): d863807

fix: install git in Dockerfile for pip+git qverify install

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -2,6 +2,13 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
5
  # Install verifier-only Python deps. requirements.txt deliberately omits
6
  # torch / transformers / outlines because the Space does not load Gemma.
7
  COPY requirements.txt .
 
2
 
3
  WORKDIR /app
4
 
5
+ # git is needed for `pip install` from github URLs (the qverify install
6
+ # below uses pip's git fetcher). python:3.11-slim does not ship git, so
7
+ # install it explicitly and clean up apt lists in the same layer.
8
+ RUN apt-get update \
9
+ && apt-get install -y --no-install-recommends git \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
  # Install verifier-only Python deps. requirements.txt deliberately omits
13
  # torch / transformers / outlines because the Space does not load Gemma.
14
  COPY requirements.txt .