Files
docker-elk/setup/Dockerfile
Antoine Cotten a1b5e0b858 chore(setup): Mount scripts instead of baking into img
Allows switching between branches of compatible stack versions (e.g.
main <-> tls) without having to rebuild the setup image.
2022-11-17 21:44:00 +01:00

16 lines
280 B
Docker

ARG ELASTIC_VERSION
# https://www.docker.elastic.co/
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
USER root
RUN set -eux; \
mkdir /state; \
chmod 0775 /state; \
chown elasticsearch:root /state
USER elasticsearch:root
ENTRYPOINT ["/entrypoint.sh"]