-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (28 loc) · 989 Bytes
/
Dockerfile
File metadata and controls
38 lines (28 loc) · 989 Bytes
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
31
32
33
34
35
36
37
38
FROM python:3.13-slim-trixie
LABEL version="0.14.3"
LABEL description="SploitScan is a powerful and user-friendly tool designed to streamline the process of identifying exploits for known vulnerabilities and their respective exploitation probability"
ARG DEBIAN_FRONTEND=noninteractive
# Setting up venv
ENV VENV=/venv
ENV PATH=${VENV}/bin:${PATH}
# Installing packages including git
RUN apt-get update && \
apt-get install --yes --no-install-recommends git && \
rm -rf /var/lib/apt/lists/*
# Downloading and installing dependencies
COPY ./requirements.txt .
RUN python -m venv ${VENV} && \
pip install --upgrade pip setuptools && \
pip install --no-cache-dir -r requirements.txt
ENV APP_HOME=/app
# Copy application files
WORKDIR $APP_HOME
COPY ./sploitscan ./sploitscan
COPY ./sploitscan.py .
COPY ./LICENSE .
COPY ./CHANGELOG.md .
# Make a directory for scan results
RUN mkdir /results
# Start the application
ENTRYPOINT ["python", "sploitscan.py"]
CMD ["-h"]