2024-02-16 23:21:18 +08:00
|
|
|
# syntax=docker/dockerfile:latest
|
2022-08-22 19:04:44 +08:00
|
|
|
# Probably from here https://github.com/elastic/elasticsearch/blob/main/distribution/docker/src/docker/Dockerfile
|
2024-03-27 20:48:53 +08:00
|
|
|
FROM elasticsearch:8.13.0
|
2022-08-25 22:18:46 +08:00
|
|
|
|
2023-06-06 22:41:26 +08:00
|
|
|
USER root
|
|
|
|
|
2023-08-23 22:06:17 +08:00
|
|
|
# hadolint ignore=DL3008
|
2022-12-29 01:48:40 +08:00
|
|
|
RUN set -ex; \
|
|
|
|
\
|
2023-05-03 23:50:33 +08:00
|
|
|
export DEBIAN_FRONTEND=noninteractive; \
|
2022-12-29 01:48:40 +08:00
|
|
|
apt-get update; \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
tzdata \
|
|
|
|
; \
|
2023-05-03 22:30:48 +08:00
|
|
|
rm -rf /var/lib/apt/lists/*; \
|
|
|
|
elasticsearch-plugin install --batch ingest-attachment
|
2022-12-29 01:48:40 +08:00
|
|
|
|
2023-06-06 18:10:54 +08:00
|
|
|
USER 1000:0
|
2023-06-03 20:56:05 +08:00
|
|
|
|
2022-12-29 01:48:40 +08:00
|
|
|
HEALTHCHECK CMD nc -z localhost 9200 || exit 1
|
2023-06-26 06:56:08 +08:00
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|