# Dockerfile for running tests in a Linux environment
FROM rust:latest
# Install dependencies for testing
RUN apt-get update && apt-get install -y \
build-essential \
git \
python3 \
python3-pip \
python3-venv \
nodejs \
npm \
ruby \
default-jdk \
golang-go \
linux-perf \
valgrind \
protobuf-compiler \
&& rm -rf /var/lib/apt/lists/*
# Install Python coverage tools
RUN pip3 install --break-system-packages coverage pytest
# Set up working directory
WORKDIR /workspace
# Copy the project
COPY . .
# Default command runs all tests
CMD ["cargo", "test", "--no-fail-fast"]