Skip to content

Instantly share code, notes, and snippets.

@MrThreat
Created October 15, 2017 06:51
Show Gist options
  • Save MrThreat/b814b4193f45e20d20851c7371d24a02 to your computer and use it in GitHub Desktop.
Save MrThreat/b814b4193f45e20d20851c7371d24a02 to your computer and use it in GitHub Desktop.
Yararule generator | Dockerfile!
# yaragen Dockerfile
#
# make sure to have this file called "Dockerfile" without quotes.
# docker build -t yaragen .
# docker run --rm -ti yaragen -h
# Pull the base image.
FROM ubuntu:16.04
# Install pre-requisites.
RUN apt update && apt install -y git python
#cleaning cache
RUN rm -rf /var/lib/apt/lists/*
#pulling code
RUN git clone https://github.com/Xen0ph0n/YaraGenerator.git
RUN chmod +x /YaraGenerator/yaraGenerator.py
#creating insert point on launch
ENTRYPOINT ["/YaraGenerator/yaraGenerator.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment