fix: Explicitly make entrypoint of 'setup' service executable

The existing executable permission might not be preserved when users
download docker-elk as a Zip file.

Fixes #676
This commit is contained in:
Antoine Cotten
2022-02-28 09:46:27 +01:00
parent eb1c6fa27e
commit a204596be7
2 changed files with 8 additions and 2 deletions

View File

@@ -4,8 +4,14 @@ ARG ELASTIC_VERSION
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
USER root
RUN mkdir /state && chown elasticsearch /state
USER elasticsearch:root
COPY . /
RUN set -eux; \
mkdir /state; \
chown elasticsearch /state; \
chmod +x /entrypoint.sh
USER elasticsearch:root
ENTRYPOINT ["/entrypoint.sh"]

0
setup/helpers.sh Executable file → Normal file
View File