This is the official docker container for threatspec.
There are two ways to build this docker image:
- From Source
- From Pypi Images
docker build --build-arg PIP="false" --build-arg BRANCH="master" -t threatspec .
PIP="false"
will flag the Dockerfile to clone a repo. This value istrue
by defaultBRANCH="master"
will fetch a specific branch after cloning the repo
docker build -t threatspec .
The easiest way to use this Docker container is to treat it as another function. Add the following alias to you .bashrc
(or .zshrc
, or whatever else environment you are running)
alias threatspec="docker run --rm -v $(pwd):/workingdir -w /workingdir threatspec/threatspec"
You can replace threatspec/threatspec
with your own tag for local builds