From cea4bcfa1f25cb858c5c04b456a44ebab23a9fbb Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Fri, 8 May 2026 00:21:34 -0700 Subject: [PATCH 1/2] Pin the Docker image Exercism's policy is to prefer pinned versions. Using the same hash across all runners allows us to store and reuse the same image, rather than needing to store a per-runner base image. This helps cut down on storage costs. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c41be77..a7954ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ # to keep this in sync between the two images. A slight mismatch in these layers # would lead to douple the storage requirement on Exercism's servers. -FROM rust:1.95.0 AS build-local-registry +FROM rust:1.95.0-trixie@sha256:a9cfb755b33f5bb872610cbdb25da61f527416b28fc9c052bbce4bef93e7799a AS build-local-registry WORKDIR /work COPY local-registry/Cargo.toml . @@ -46,7 +46,7 @@ EOF ############################## END SHARED LAYERS ############################## -FROM rust:1.95.0 AS build +FROM rust:1.95.0-trixie@sha256:a9cfb755b33f5bb872610cbdb25da61f527416b28fc9c052bbce4bef93e7799a AS build WORKDIR /work COPY Cargo.* ./ From 7a1484cb8f3a8942b786bcaa281c91064b8eaaed Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Mon, 11 May 2026 19:35:52 -0700 Subject: [PATCH 2/2] Only pin the image for the final layer --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a7954ab..d94d915 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ # to keep this in sync between the two images. A slight mismatch in these layers # would lead to douple the storage requirement on Exercism's servers. -FROM rust:1.95.0-trixie@sha256:a9cfb755b33f5bb872610cbdb25da61f527416b28fc9c052bbce4bef93e7799a AS build-local-registry +FROM rust:1.95.0-trixie AS build-local-registry WORKDIR /work COPY local-registry/Cargo.toml . @@ -46,7 +46,7 @@ EOF ############################## END SHARED LAYERS ############################## -FROM rust:1.95.0-trixie@sha256:a9cfb755b33f5bb872610cbdb25da61f527416b28fc9c052bbce4bef93e7799a AS build +FROM rust:1.95.0-trixie AS build WORKDIR /work COPY Cargo.* ./