# create image with dependencies needed to compile openroad app and run openroad flow scripts # NOTE: don't use this file directly unless you know what you are doing, # instead use etc/DockerHelper.sh ARG fromImage=ubuntu:26.04 FROM $fromImage WORKDIR /tmp/installer/etc COPY DependencyInstaller.sh . COPY requirements-common_lock.txt . COPY requirements-pip_lock.txt . COPY InstallerOpenROAD.sh \ /tmp/installer/tools/OpenROAD/etc/DependencyInstaller.sh ARG options="" ARG constantBuildDir="-constant-build-dir" # add compiler wrapper scripts for reproducible builds COPY setup_compiler_wrappers.sh /tmp/ RUN sh /tmp/setup_compiler_wrappers.sh && rm /tmp/setup_compiler_wrappers.sh ENV PATH="/usr/local/bin/wrapped-cc:$PATH" # The lock in requirements-common_lock.txt is installed into this virtual # environment: the system Python is externally managed (PEP 668). ENV VIRTUAL_ENV=/opt/orfs-python ENV PATH="${VIRTUAL_ENV}/bin:$PATH" # The last rm drops the unused net-imap default gem bundled with Ubuntu 22.04's # Ruby 3.0 (flagged by CVE scanners, never used by the flow). It is chained here # so the files don't persist in an earlier layer. No-op if not present. RUN ./DependencyInstaller.sh -base $options $constantBuildDir -save-deps-prefixes=/etc/openroad_deps_prefixes.txt \ && ./DependencyInstaller.sh -common $options $constantBuildDir -save-deps-prefixes=/etc/openroad_deps_prefixes.txt \ && rm -rf /tmp/installer /tmp/* /var/tmp/* /var/lib/apt/lists/* \ && rm -rf /usr/lib/ruby/gems/*/gems/net-imap-0.1.1 \ /usr/lib/ruby/gems/*/specifications/default/net-imap-0.1.1.gemspec ARG fromImage RUN echo "$fromImage" | grep -q "ubuntu" && \ strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so || \ echo "Skipping strip command as fromImage does not contain 'ubuntu'" WORKDIR /OpenROAD-flow-scripts