Skip to content

Commit

Permalink
Update Dockerfile.erb to set eux on RUN command with semicolons
Browse files Browse the repository at this point in the history
as per guidance #16063 (comment)
  • Loading branch information
jsvd authored Feb 24, 2025
1 parent 247f73b commit 66ee6f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/templates/Dockerfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ COPY --from=builder-env2yaml /tmp/go/src/env2yaml/env2yaml /usr/local/bin/env2ya
<% else -%>
COPY env2yaml/env2yaml-amd64 env2yaml/env2yaml-arm64 env2yaml/
# Copy over the appropriate env2yaml artifact
RUN env2yamlarch="$(<%= arch_command %>)"; \
RUN set -eux; env2yamlarch="$(<%= arch_command %>)"; \
case "${env2yamlarch}" in \
'x86_64'|'amd64') \
env2yamlarch=amd64; \
Expand Down

0 comments on commit 66ee6f8

Please sign in to comment.