From c3efa2b3c9e04607dad8c699b7ccf3c57f554071 Mon Sep 17 00:00:00 2001 From: Lanture1064 <34346740+Lanture1064@users.noreply.github.com> Date: Wed, 24 Jan 2024 13:46:33 +0800 Subject: [PATCH] F --- deploy/evaluation/Dockerfile | 3 ++- pypi/ragas_once/setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/evaluation/Dockerfile b/deploy/evaluation/Dockerfile index 77dd277b5..9f1b99c57 100644 --- a/deploy/evaluation/Dockerfile +++ b/deploy/evaluation/Dockerfile @@ -36,5 +36,6 @@ RUN python -m pip install ragas langchain -i ${PYTHON_INDEX_URL} # build ragas-once by source code COPY ./pypi/ragas_once ./ragas_once -RUN python ./ragas_once/setup.py bdist_wheel -d /app/dist +WORKDIR /app/ragas_once +RUN python setup.py bdist_wheel -d /app/dist RUN pip install dist/ragas_once-0.0.1-py3-none-any.whl \ No newline at end of file diff --git a/pypi/ragas_once/setup.py b/pypi/ragas_once/setup.py index 4b8112387..46911caf8 100644 --- a/pypi/ragas_once/setup.py +++ b/pypi/ragas_once/setup.py @@ -2,7 +2,7 @@ from setuptools import find_packages, setup -with open("./README.md", "r", encoding="utf-8") as f: +with open("README.md", "r", encoding="utf-8") as f: long_description = f.read() setup(