File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
distribution/docker/src/docker Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,16 @@ RUN ln -sf /etc/pki/ca-trust/extracted/java/cacerts jdk/lib/security/cacerts
105105
106106ENV PATH=/usr/share/elasticsearch/bin:\$PATH
107107ENV SHELL=/bin/bash
108- COPY bin/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
108+
109109COPY --chmod=0555 bin/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
110110
111+ RUN chmod g=u /etc/passwd && \\
112+ chmod 0555 /usr/local/bin/docker-entrypoint.sh && \\
113+ find / -xdev -perm -4000 -exec chmod ug-s {} + && \\
114+ chmod 0775 /usr/share/elasticsearch && \\
115+ chown elasticsearch bin config config/jvm.options.d data logs plugins
116+
117+
111118EXPOSE 9200 9300
112119
113120LABEL org.label-schema.build-date="${build_date}" \\
You can’t perform that action at this time.
0 commit comments