Skip to content

Commit

Permalink
Merge pull request #9 from danieldavidson/dockerize
Browse files Browse the repository at this point in the history
Add Dockerfile to run containerized app
  • Loading branch information
aviyachki authored Feb 4, 2025
2 parents 864129b + 95a5516 commit dd32142
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.11

RUN --mount=type=bind,source=requirements.txt,target=/tmp/requirements.txt \
pip install --requirement /tmp/requirements.txt
## If the RUN on line 3 fails, comment it out and uncomment lines 6-8
# COPY ./requirements.txt ./requirements.txt
# RUN pip install -r requirements.txt
# RUN rm requirements.txt
WORKDIR /odef
CMD ["python", "main.py"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ python main.py

* Follow the process and once completed ensure that all files are present and your detection is well documented

### The Docker method

```
docker build -t odef .
docker run -it --rm -v $(pwd):/odef odef
```

The application will run in the container and your detections will be saved locally.

## How to contribute

There are two ways to contribute to the repository and the community. Via discussions where you can raise topics of interest that will help the detection engineering community or by submitting issues or PRs to push your change to the repository.
Expand Down

0 comments on commit dd32142

Please sign in to comment.