-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.agent
More file actions
35 lines (26 loc) · 928 Bytes
/
Copy pathDockerfile.agent
File metadata and controls
35 lines (26 loc) · 928 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
FROM python:3.12-slim
# Install Java 17 (Joern requirement) + git + curl + unzip
RUN apt-get update && apt-get install -y --no-install-recommends \
openjdk-21-jre-headless \
git \
curl \
unzip \
php-cli \
&& rm -rf /var/lib/apt/lists/*
# Install Joern via official install script
RUN curl -fsSL "https://github.com/joernio/joern/releases/latest/download/joern-install.sh" \
-o /tmp/joern-install.sh \
&& chmod +x /tmp/joern-install.sh \
&& /tmp/joern-install.sh --install-dir /opt/joern \
&& rm /tmp/joern-install.sh
ENV PATH="/opt/joern/joern-cli:${PATH}"
# Isolated Python venv — avoids externally-managed-environment block
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:${PATH}"
# Install Semgrep
RUN pip install --no-cache-dir semgrep
WORKDIR /app
COPY pyproject.toml .
COPY src/ src/
RUN pip install --no-cache-dir -e .
CMD ["vulnchain", "serve", "--port", "8080"]