From 2a34f0073f7ed4cd86fa5ebc06fc4e36a2fc365d Mon Sep 17 00:00:00 2001 From: Mathieu Tarral Date: Sat, 27 Sep 2025 05:17:18 -0700 Subject: [PATCH 1/2] Dockerfile: remove dnf cache to save space --- Dockerfile | 122 +++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 94 insertions(+), 28 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0117b254..70b3322c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,14 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] # - Tools for creating a CRAFF image to load into a model # - Python, including checkers/linters # - Rust (will be on the PATH due to the ENV command above) -RUN dnf -y update && \ - dnf -y install \ +# hadolint ignore=DL3004,SC3009 +RUN <> /root/.bashrc @@ -164,6 +206,30 @@ WORKDIR /workspace/tsffs FROM fedora:42@sha256:f357623dc40edf7803f21b2b954f92417f274a7370f82384ef13c73e08ce1727 AS tsffs-prod +# Install minimal runtime dependencies only +# hadolint ignore=DL3004,SC3009 +RUN < Date: Sat, 27 Sep 2025 05:21:20 -0700 Subject: [PATCH 2/2] Dockerfile: cargo clean to save space --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 70b3322c..db59fd37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -131,6 +131,9 @@ cargo simics-build -r # Install the built package ispm packages -i target/release/*-linux64.ispm --non-interactive --trust-insecure-packages + +# Cleanup +cargo clean EOF WORKDIR /workspace/projects/example/