Merge pull request #2495 from nextcloud/elastic-dockerfile

optimze elastic Dockerfile
This commit is contained in:
Simon L
2023-05-03 17:55:42 +02:00
committed by GitHub

View File

@@ -1,15 +1,15 @@
# Probably from here https://github.com/elastic/elasticsearch/blob/main/distribution/docker/src/docker/Dockerfile
FROM elasticsearch:7.17.10
RUN elasticsearch-plugin install --batch ingest-attachment
RUN set -ex; \
\
export DEBIAN_FRONTEND=noninteractive; \
apt-get update; \
apt-get install -y --no-install-recommends \
tzdata \
; \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/*; \
elasticsearch-plugin install --batch ingest-attachment
HEALTHCHECK CMD nc -z localhost 9200 || exit 1
LABEL com.centurylinklabs.watchtower.monitor-only="true"