From cb6d3866efa654ecd182f27161eaae090fe19f20 Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Sat, 18 Nov 2023 16:47:48 +0000 Subject: [PATCH] misc. --- Dockerfile | 3 ++- docker_cmd.sh | 2 +- personal_mnemonic_medium/cli.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d577add..a93231b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,5 @@ FROM python:3.11-slim-bookworm WORKDIR /app COPY --from=builder /root/.local /root/.local ENV PATH=/root/.local/bin:${PATH} -COPY --from=builder /app . \ No newline at end of file +COPY --from=builder /app . +RUN pip install -e . \ No newline at end of file diff --git a/docker_cmd.sh b/docker_cmd.sh index 90657c2c..89c024fa 100755 --- a/docker_cmd.sh +++ b/docker_cmd.sh @@ -7,4 +7,4 @@ docker run -itd \ -v $HOME/ankidecks:/output \ --restart unless-stopped \ personal-mnemonic-medium \ - python application/cli.py /input/ $HOME/ankidecks --watch \ No newline at end of file + python personal_mnemonic_medium/cli.py /input/ $HOME/ankidecks --watch --use-anki-connect \ No newline at end of file diff --git a/personal_mnemonic_medium/cli.py b/personal_mnemonic_medium/cli.py index a69cc287..df3ae6fc 100644 --- a/personal_mnemonic_medium/cli.py +++ b/personal_mnemonic_medium/cli.py @@ -1,6 +1,6 @@ import typer -from .main import main +from personal_mnemonic_medium.main import main if __name__ == "__main__": typer.run(main)