# Use a base image with build tools FROM ubuntu:20.04 # Install required packages including Perl modules RUN apt-get update && \ apt-get install -y \ verilator \ make \ g++ \ perl \ libfindbin-libs-perl \ && rm -rf /var/lib/apt/lists/* # Set the working directory WORKDIR /workspace # Copy the source files COPY src /workspace/src COPY run_tests.sh /workspace # Set permissions RUN chmod +x /workspace/run_tests.sh # Run the tests by default when the container starts CMD ["./run_tests.sh"]