* Removed un-necessary virtual environment creation in Dockerfiles. * Updated Dockerfiles to install packages in a virtual environment. * use venv's python * update * build and trigger * trigger * build and trigger * build and trigger * build and trigger * build and trigger * build and trigger * build and trigger * update * update * update * update --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
10 lines
412 B
Docker
10 lines
412 B
Docker
FROM python:3.9-slim
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ARG REF=main
|
|
USER root
|
|
RUN apt-get update && apt-get install -y time git
|
|
ENV UV_PYTHON=/usr/local/bin/python
|
|
RUN pip install uv
|
|
RUN uv pip install --no-cache-dir -U pip setuptools GitPython "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[ruff]" urllib3
|
|
RUN apt-get install -y jq curl && apt-get clean && rm -rf /var/lib/apt/lists/*
|