mirror of
https://github.com/deviantony/docker-elk.git
synced 2026-01-05 20:43:21 +01:00
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:
@@ -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
0
setup/helpers.sh
Executable file → Normal file
Reference in New Issue
Block a user