Skip to content

Commit cea4bcf

Browse files
committed
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.
1 parent d017ee6 commit cea4bcf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# to keep this in sync between the two images. A slight mismatch in these layers
77
# would lead to douple the storage requirement on Exercism's servers.
88

9-
FROM rust:1.95.0 AS build-local-registry
9+
FROM rust:1.95.0-trixie@sha256:a9cfb755b33f5bb872610cbdb25da61f527416b28fc9c052bbce4bef93e7799a AS build-local-registry
1010

1111
WORKDIR /work
1212
COPY local-registry/Cargo.toml .
@@ -46,7 +46,7 @@ EOF
4646
############################## END SHARED LAYERS ##############################
4747

4848

49-
FROM rust:1.95.0 AS build
49+
FROM rust:1.95.0-trixie@sha256:a9cfb755b33f5bb872610cbdb25da61f527416b28fc9c052bbce4bef93e7799a AS build
5050

5151
WORKDIR /work
5252
COPY Cargo.* ./

0 commit comments

Comments
 (0)