From b8fa5c07af7b386c90ac3a8a918de0429f28b041 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Thu, 2 May 2024 14:06:20 +0200 Subject: [PATCH] Use absolute path for `Dockerfile` to be able to mount a directory for execution Signed-off-by: Tobias Wolf --- Dockerfile | 2 +- README.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5176b89..5b17f59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,4 +34,4 @@ COPY --from=builder /app/rookify/dist/Rookify-${ROOKIFY_VERSION}-py3-none-any.wh RUN .venv/bin/pip3 install ./src/Rookify-${ROOKIFY_VERSION}-py3-none-any.whl # Set the ENTRYPOINT to activate the venv and then run the 'rookify' command -ENTRYPOINT [".venv/bin/rookify"] +ENTRYPOINT ["/app/rookify/.venv/bin/rookify"] diff --git a/README.md b/README.md index d2499a9..e2cbe8c 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,9 @@ make setup ``` 4. To install the container-based environment -```base +```bash make build-container +docker run -ti --mount type=bind,source="$(pwd)",target=/app/rookify/src/,readonly --workdir=/app/rookify/src rookify:latest ``` ## Usage