Files
fuzzforge_ai/fuzzforge-modules/harness-tester/Dockerfile
abel 854f1e5631 build(fuzzforge-modules): parameterize module dockerfile base image
replace hardcoded localhost/fuzzforge-modules-sdk:0.1.0 with a
configurable
ARG BASE_IMAGE and use FROM ${BASE_IMAGE}. default ARG is
fuzzforge-modules-sdk:0.0.1. updated Dockerfiles: cargo-fuzzer,
crash-analyzer, fuzzforge-module-template, harness-tester,
rust-analyzer.
2026-03-09 17:00:18 +01:00

28 lines
849 B
Docker

ARG BASE_IMAGE=fuzzforge-modules-sdk:0.0.1
FROM ${BASE_IMAGE}
# Module metadata is now read from pyproject.toml [tool.fuzzforge.module] section
# Install build tools and Rust nightly for compiling and testing fuzz harnesses
RUN apt-get update && apt-get install -y \
curl \
build-essential \
pkg-config \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
ENV PATH="/root/.cargo/bin:${PATH}"
# Install cargo-fuzz for testing harnesses
RUN cargo install cargo-fuzz --locked || true
COPY ./src /app/src
COPY ./pyproject.toml /app/pyproject.toml
COPY ./README.md /app/README.md
# Remove workspace reference since we're using wheels
RUN sed -i '/\[tool\.uv\.sources\]/,/^$/d' /app/pyproject.toml
RUN uv sync --find-links /wheels