-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (42 loc) · 1.53 KB
/
Dockerfile
File metadata and controls
55 lines (42 loc) · 1.53 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
54
55
# SolidityGuard CLI — Solidity security audit tool
# Usage:
# docker build -t solidityguard .
# docker run -v ./contracts:/audit solidityguard audit /audit
# docker run -v ./contracts:/audit solidityguard scan /audit --category reentrancy
# docker run -v ./contracts:/audit solidityguard audit --quick /audit -o /audit/findings.json
FROM python:3.12-slim AS base
LABEL maintainer="Alt Research Ltd."
LABEL description="SolidityGuard — Solidity smart contract security audit"
LABEL version="1.3.2"
# System deps for weasyprint PDF generation + build tools
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
git \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libgdk-pixbuf-2.0-0 \
libffi-dev \
libcairo2 \
&& rm -rf /var/lib/apt/lists/*
# Install Foundry (forge, cast, anvil)
RUN curl -L https://foundry.paradigm.xyz | bash && \
/root/.foundry/bin/foundryup
ENV PATH="/root/.foundry/bin:${PATH}"
# Install Slither
RUN pip install --no-cache-dir slither-analyzer
# Install Mythril
RUN pip install --no-cache-dir mythril || true
# Install Halmos
RUN pip install --no-cache-dir halmos || true
# Install weasyprint + markdown for PDF reports
RUN pip install --no-cache-dir weasyprint markdown
WORKDIR /app
# Copy scanner scripts (core engine)
COPY .claude/skills/solidity-guard/scripts/ /app/scripts/
# Copy and install CLI
COPY apps/cli/ /app/cli/
RUN pip install --no-cache-dir /app/cli/
# Copy knowledge base
COPY knowledge-base/ /app/knowledge-base/
ENTRYPOINT ["solidityguard"]
CMD ["--help"]