Update Dockerfile
Browse files- 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 |
-
|
6 |
-
|
|
|
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
|