hlarcher HF Staff commited on
Commit
15c6684
·
verified ·
1 Parent(s): 886fb43

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,10 +1,12 @@
1
  FROM python:3-bookworm
2
  RUN apt-get update && apt-get install -y \
3
  git \
4
- && rm -rf /var/lib/apt/lists/*
5
- RUN curl -sSL https://install.python-poetry.org | python3 -
6
- ENV PATH="/root/.local/bin:$PATH"
 
7
  WORKDIR /app
 
8
  RUN git clone https://github.com/huggingface/inference-benchmarker.git \
9
  && cd inference-benchmarker \
10
  && poetry install --no-root
 
1
  FROM python:3-bookworm
2
  RUN apt-get update && apt-get install -y \
3
  git \
4
+ && rm -rf /var/lib/apt/lists/* \
5
+ ENV POETRY_HOME=/poetry
6
+ RUN mkdir /poetry && curl -sSL https://install.python-poetry.org | POETRY_HOME=/poetry python3 -
7
+ ENV PATH="/poetry/bin/:$PATH"
8
  WORKDIR /app
9
+ CMD ["bash"]
10
  RUN git clone https://github.com/huggingface/inference-benchmarker.git \
11
  && cd inference-benchmarker \
12
  && poetry install --no-root