Skip to content

Commit 09b8481

Browse files
committed
Make sure all loops over dict items are deterministic
1 parent 66227f8 commit 09b8481

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

repo2docker/buildpacks/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
9191
{% if build_script_files -%}
9292
# If scripts required during build are present, copy them
93-
{% for src, dst in build_script_files.items() %}
93+
{% for src, dst in build_script_files|dictsort %}
9494
COPY {{ src }} {{ dst }}
9595
{% endfor -%}
9696
{% endif -%}
@@ -127,7 +127,7 @@
127127
# example installing APT packages.
128128
{% if preassemble_script_files -%}
129129
# If scripts required during build are present, copy them
130-
{% for src, dst in preassemble_script_files.items() %}
130+
{% for src, dst in preassemble_script_files|dictsort %}
131131
COPY src/{{ src }} ${REPO_DIR}/{{ dst }}
132132
{% endfor -%}
133133
{% endif -%}
@@ -151,7 +151,7 @@
151151
# Container image Labels!
152152
# Put these at the end, since we don't want to rebuild everything
153153
# when these change! Did I mention I hate Dockerfile cache semantics?
154-
{% for k, v in labels.items() %}
154+
{% for k, v in labels|dictsort %}
155155
LABEL {{k}}="{{v}}"
156156
{%- endfor %}
157157

0 commit comments

Comments
 (0)