Skip to content

Commit 6c43d45

Browse files
Update Dockerfile.erb to set eux on RUN command with semicolons (#17141) (#17200)
as per guidance #16063 (comment) (cherry picked from commit 18772dd) Co-authored-by: João Duarte <[email protected]>
1 parent 71127fa commit 6c43d45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/templates/Dockerfile.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ COPY --from=builder-env2yaml /tmp/go/src/env2yaml/env2yaml /usr/local/bin/env2ya
191191
<% else -%>
192192
COPY env2yaml/env2yaml-amd64 env2yaml/env2yaml-arm64 env2yaml/
193193
# Copy over the appropriate env2yaml artifact
194-
RUN env2yamlarch="$(<%= arch_command %>)"; \
194+
RUN set -eux; env2yamlarch="$(<%= arch_command %>)"; \
195195
case "${env2yamlarch}" in \
196196
'x86_64'|'amd64') \
197197
env2yamlarch=amd64; \

0 commit comments

Comments
 (0)