From 363103468e67d91c5a6d8fc5fa941f651ec2fb63 Mon Sep 17 00:00:00 2001 From: Daoud Clarke Date: Fri, 17 Jun 2022 21:26:21 +0100 Subject: [PATCH] Update Dockerfile for changes --- Dockerfile | 6 ++---- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index bebe590..dc87ab9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,9 +35,7 @@ COPY --from=builder /venv /venv # Working directory is /app # Copying data and config into /app so that relative (default) paths in the config work -COPY data /app/data -COPY config /app/config +# COPY data /app/data # Using the mwmbl-tinysearchengine binary/entrypoint which comes packaged with mwmbl -# TODO: fix the arguments for the recent changes -CMD ["/venv/bin/mwmbl-tinysearchengine", "--config", "config/tinysearchengine.yaml"] +CMD ["/venv/bin/mwmbl-tinysearchengine", "--index", "data/index.tinysearch", "--terms", "data/mwmbl-crawl-terms.csv"] diff --git a/pyproject.toml b/pyproject.toml index 7cd87af..536f666 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,4 +74,4 @@ requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] -mwmbl-tinysearchengine = "mwmbl.tinysearchengine.app:main" +mwmbl-tinysearchengine = "mwmbl.main:run"