-
-
Notifications
You must be signed in to change notification settings - Fork 919
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1904 from DaveLak/docker-helper-for-light-weight-…
…fuzzer-execution Dockerize "Direct Execution of Fuzz Targets"
- Loading branch information
Showing
2 changed files
with
59 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
# Use the same Python version as OSS-Fuzz to accidental incompatibilities in test code | ||
FROM python:3.8-bookworm | ||
|
||
LABEL project="GitPython Fuzzing Local Dev Helper" | ||
|
||
WORKDIR /src | ||
|
||
COPY . . | ||
|
||
# Update package managers, install necessary packages, and cleanup unnecessary files in a single RUN to keep the image smaller. | ||
RUN apt-get update && \ | ||
apt-get install -y git clang && \ | ||
python -m pip install --upgrade pip && \ | ||
python -m pip install atheris && \ | ||
python -m pip install -e . && \ | ||
apt-get clean && \ | ||
apt-get autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
CMD ["bash"] |