Skip to content

Commit

Permalink
Use absolute path for Dockerfile to be able to mount a directory fo…
Browse files Browse the repository at this point in the history
…r execution

Signed-off-by: Tobias Wolf <[email protected]>
  • Loading branch information
NotTheEvilOne committed May 2, 2024
1 parent f267d13 commit b8fa5c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8fa5c0

Please sign in to comment.