diff --git a/docker/templates/Dockerfile.erb b/docker/templates/Dockerfile.erb index 7379c5c9742..a67b30bb466 100644 --- a/docker/templates/Dockerfile.erb +++ b/docker/templates/Dockerfile.erb @@ -148,7 +148,8 @@ COPY config/pipelines.yml config/pipelines.yml COPY config/log4j2.properties config/ COPY config/log4j2.file.properties config/ COPY pipeline/default.conf pipeline/logstash.conf -COPY env2yaml/* env2yaml/ +COPY env2yaml/env2yaml-amd64 env2yaml/ +COPY env2yaml/env2yaml-arm64 env2yaml/ RUN chown --recursive logstash:root config/ pipeline/ # Ensure Logstash gets the correct locale by default. @@ -165,7 +166,8 @@ RUN env2yamlarch="$(arch)"; \ ;; \ *) echo >&2 "error: unsupported architecture '$env2yamlarch'"; exit 1 ;; \ esac; \ - cp env2yaml/env2yaml-${env2yamlarch} /usr/local/bin/env2yaml + cp env2yaml/env2yaml-${env2yamlarch} /usr/local/bin/env2yaml; \ + rm -rf env2yaml # Place the startup wrapper script. COPY bin/docker-entrypoint /usr/local/bin/