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:
parent
eb1c6fa27e
commit
a204596be7
|
@ -4,8 +4,14 @@ ARG ELASTIC_VERSION
|
||||||
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
|
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
RUN mkdir /state && chown elasticsearch /state
|
|
||||||
USER elasticsearch:root
|
|
||||||
|
|
||||||
COPY . /
|
COPY . /
|
||||||
|
|
||||||
|
RUN set -eux; \
|
||||||
|
mkdir /state; \
|
||||||
|
chown elasticsearch /state; \
|
||||||
|
chmod +x /entrypoint.sh
|
||||||
|
|
||||||
|
USER elasticsearch:root
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
Loading…
Reference in New Issue