Skip to content

Commit

Permalink
[#61287] docker: Dockerfile.builder: Remove unnecessary files from bu…
Browse files Browse the repository at this point in the history
…ild step

Signed-off-by: Illia Vysochyn <[email protected]>
  • Loading branch information
ivysochyn committed Jun 28, 2024
1 parent b3bb697 commit 466644d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docker/Dockerfile.builder
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@
# instead use etc/DockerHelper.sh
ARG fromImage=openroad/flow-centos7-dev:latest

FROM $fromImage
FROM $fromImage AS OpenRoadBuilder

ARG numThreads=$(nproc)

COPY . /OpenROAD-flow-scripts
WORKDIR /OpenROAD-flow-scripts
RUN ./build_openroad.sh --no_init --local --threads ${numThreads}

FROM $fromImage AS OpenRoadFlowScripts

COPY . /OpenROAD-flow-scripts

RUN rm -rf /OpenROAD-flow-scripts/tools

COPY --from=OpenRoadBuilder /OpenROAD-flow-scripts/tools/install /OpenROAD-flow-scripts/tools/install

FROM $fromImage

COPY --from=OpenRoadFlowScripts /OpenROAD-flow-scripts /OpenROAD-flow-scripts

0 comments on commit 466644d

Please sign in to comment.