Update Dockerfile for changes

This commit is contained in:
Daoud Clarke 2022-06-17 21:26:21 +01:00
parent e2eb405083
commit 363103468e
2 changed files with 3 additions and 5 deletions

View file

@ -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"]

View file

@ -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"