* fix * [push-ci-image] * run with latest --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
16 lines
724 B
Docker
16 lines
724 B
Docker
FROM python:3.10-slim
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
USER root
|
|
ARG REF=main
|
|
RUN apt-get update && apt-get install -y time git pkg-config make git-lfs
|
|
ENV VIRTUAL_ENV=/usr/local
|
|
RUN pip install uv==0.1.45 && uv venv && uv pip install --no-cache-dir -U pip setuptools GitPython
|
|
RUN uv pip install --no-cache-dir --upgrade 'torch' --index-url https://download.pytorch.org/whl/cpu
|
|
RUN uv pip install --no-cache-dir tensorflow-cpu tf-keras
|
|
RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/transformers.git@${REF}#egg=transformers[flax,quality,vision,testing]"
|
|
RUN git lfs install
|
|
|
|
RUN pip uninstall -y transformers
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get autoremove && apt-get autoclean
|
|
|