quality.dockerfile 424 Bytes
Newer Older
1
2
FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE=1
3
ARG REF=main
4
5
6
USER root
RUN apt-get update && apt-get install -y time git 
ENV VIRTUAL_ENV=/usr/local
Yih-Dar's avatar
Yih-Dar committed
7
RUN pip install uv==0.1.45 &&  uv venv
8
RUN uv pip install --no-cache-dir -U pip setuptools GitPython "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[ruff]" urllib3
9
RUN apt-get install -y jq curl && apt-get clean && rm -rf /var/lib/apt/lists/*