-
Notifications
You must be signed in to change notification settings - Fork 100
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (41 loc) · 1.35 KB
/
Dockerfile
File metadata and controls
53 lines (41 loc) · 1.35 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
48
49
50
51
52
53
FROM golang:1.24-bullseye AS golang
# Set working directory
WORKDIR /app
# Install Python, pip, Go, virtualenv, and other tools
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-venv \
jq \
curl \
git \
masscan \
nmap \
ruby-full && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
git clone https://github.com/sqlmapproject/sqlmap /opt/sqlmap && \
ln -s /opt/sqlmap/sqlmap.py /usr/local/bin/sqlmap && \
chmod +x /usr/local/bin/sqlmap
RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
apt-get install -y nodejs && \
if ! command -v npm >/dev/null 2>&1; then \
echo "[*] npm not found, installing manually..."; \
apt-get install -y npm; \
else \
echo "[+] npm is already included with Node.js"; \
fi && \
npm install -g npm@latest \
npm install -g @cyproxio/mcp-manager
# Create a global virtualenv
RUN python3 -m venv /opt/venv
# Install pip tools inside venv if needed (optional)
RUN /opt/venv/bin/pip install --upgrade pip
# Add venv to PATH (so pip, python point to venv by default)
ENV PATH="/opt/venv/bin:$PATH"
# Copy project files
COPY . .
# Make sure the entrypoint is executable
COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh && /app/start.sh
RUN cat mcp-config.json
CMD ["bash"]