From 3f005e873fda4fd3374706695b5210e04821f057 Mon Sep 17 00:00:00 2001 From: joszamama Date: Mon, 3 Feb 2025 20:09:32 +0100 Subject: [PATCH] fix: dockerfile --- Dockerfile | 15 ++++----------- pyproject.toml | 6 ------ 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index e9f3745a..e095aa44 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,21 +19,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Copy pyproject.toml and other required files COPY pyproject.toml README.md LICENSE.md Makefile SECURITY.md /app/ -# Install pip, setuptools, and wheel -RUN python -m pip install --upgrade pip setuptools wheel poetry - -# Install dependencies listed in pyproject.toml -RUN poetry config virtualenvs.in-project true # Use .venv inside the project directory -RUN poetry install --no-root +# Install pip, setuptools, wheel, and build +RUN python -m pip install --upgrade pip setuptools wheel build # Copy the entire project into the container COPY . /app -# Ensure the CLI script is installed and accessible -RUN poetry build && pip install dist/*.whl - -# Set the PATH to include Poetry's virtual environment -ENV PATH="/app/.venv/bin:$PATH" +# Build the package and install the wheel +RUN python -m build && pip install dist/*.whl # Keep the container running with a long-running process CMD ["tail", "-f", "/dev/null"] diff --git a/pyproject.toml b/pyproject.toml index 195fbcb4..f5efa5cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,9 +65,3 @@ test = [ [tool.black] line-length = 88 target-version = ['py311'] - -[tool.poetry] -packages = [ - { include = "fandango", from = "src" }, - { include = "evaluation", from = "evaluation" } -] \ No newline at end of file