-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (37 loc) · 1.24 KB
/
Copy pathDockerfile
File metadata and controls
47 lines (37 loc) · 1.24 KB
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
39
40
41
42
43
44
45
46
47
# OffSploit v1.0 - Dockerfile
# ============================
# Kullanım:
# docker build -t offsploit .
# docker run -it --rm offsploit
#
# Ollama ile birlikte:
# docker run -it --rm --network host offsploit --ollama-url http://host.docker.internal:11434
FROM python:3.12-slim
LABEL maintainer="Egnake"
LABEL description="OffSploit - Offline Exploit Adaptation Tool"
LABEL version="1.0.0"
# Sistem bağımlılıkları (gcc exploit derleme için)
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
g++ \
nmap \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/offsploit
# Bağımlılıkları önce yükle (cache optimizasyonu)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Uygulama dosyalarını kopyala
COPY pyproject.toml .
COPY cli_app.py .
COPY offsploit/ offsploit/
COPY web/ web/
COPY mock_data/ mock_data/
# Paketi editable modda yükle
RUN pip install --no-cache-dir -e .
# NOT: exploitdb/ klasörü çok büyük olduğu için dahil edilmez.
# Kullanıcı kendi exploit DB'sini mount etmelidir:
# docker run -it --rm -v /path/to/exploitdb:/opt/offsploit/exploitdb offsploit
# Çıktı dizinini oluştur
RUN mkdir -p /opt/offsploit/output
ENTRYPOINT ["python", "cli_app.py"]
CMD []