forked from cohenaj194/nightvision-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (22 loc) · 861 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Use the official Python image, which is Debian-based
FROM python:3.10-slim
# Install curl and tar
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
tar \
&& rm -rf /var/lib/apt/lists/*
# Install Semgrep
RUN pip install semgrep
# Download and install the nightvision software
RUN curl -L https://downloads.nightvision.net/binaries/latest/nightvision_latest_linux_amd64.tar.gz -q | tar -xz \
&& mv nightvision /usr/local/bin/
# Set the working directory to /mnt
WORKDIR /mnt
# Default command
CMD ["bash"]
## example use
# docker run -v $(pwd):/mnt -it --env "NIGHTVISION_TOKEN=$(nightvision token create)" --network="host" alexnightvision/nightvision-cli
## JAVA SPRING
# nightvision swagger extract ./ -t javaspringvulny-api --lang spring
## DOTNET
# nightvision swagger extract ./ -t universalis --lang dotnet