Dockerfile 525 B

1234567891011121314151617181920212223242526
  1. # Use a base image with build tools
  2. FROM ubuntu:20.04
  3. # Install required packages including Perl modules
  4. RUN apt-get update && \
  5. apt-get install -y \
  6. verilator \
  7. make \
  8. g++ \
  9. perl \
  10. libfindbin-libs-perl \
  11. && rm -rf /var/lib/apt/lists/*
  12. # Set the working directory
  13. WORKDIR /workspace
  14. # Copy the source files
  15. COPY src /workspace/src
  16. COPY run_tests.sh /workspace
  17. # Set permissions
  18. RUN chmod +x /workspace/run_tests.sh
  19. # Run the tests by default when the container starts
  20. CMD ["./run_tests.sh"]