File size: 813 Bytes
ecea89f 15c6684 3dcc89d 908192e ecea89f 15c6684 ecea89f 6dac797 ecea89f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM python:3-bookworm
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/* \
ENV POETRY_HOME=/poetry
RUN mkdir /poetry && curl -sSL https://install.python-poetry.org | POETRY_HOME=/poetry python3 -
ENV PATH="/poetry/bin/:$PATH"
RUN poetry config virtualenvs.create true \
&& poetry config cache-dir /poetry/cache \
&& poetry config installer.parallel false \
&& poetry config virtualenvs.in-project true
WORKDIR /app
CMD ["bash"]
RUN git clone https://github.com/huggingface/inference-benchmarker.git \
&& cd inference-benchmarker \
&& poetry install --no-root
COPY results results
WORKDIR /app/inference-benchmarker
RUN chmod 777 -R /app/inference-benchmarker
CMD ["poetry", "run", "python", "extra/dashboard/app.py", "--from-results-dir", "/app/results"]
|