# Synor Test Dockerfile
# Used for running tests in Docker environment

FROM rust:1.85-bookworm

# Install build dependencies
RUN apt-get update && apt-get install -y \
    cmake \
    clang \
    libclang-dev \
    pkg-config \
    libssl-dev \
    && rm -rf /var/lib/apt/lists/*

# Create app directory
WORKDIR /app

# Copy project files
COPY Cargo.toml Cargo.lock ./
COPY src/ src/
COPY crates/ crates/
COPY apps/ apps/
COPY contracts/ contracts/
COPY sdk/ sdk/

# Default command runs synor-bridge tests
CMD ["cargo", "test", "-p", "synor-bridge", "--", "--test-threads=4"]
