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-09-06 20:46:09 +08:00
|
|
|
FROM elasticsearch:8.15.1
|
2022-08-25 22:18:46 +08:00
|
|
|
|
2023-06-06 22:41:26 +08:00
|
|
|
USER root
|
|
|
|
|
2024-06-21 19:27:36 +08:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2024-04-17 23:52:42 +08:00
|
|
|
|
2023-08-23 22:06:17 +08:00
|
|
|
# hadolint ignore=DL3008
|
2022-12-29 01:48:40 +08:00
|
|
|
RUN set -ex; \
|
|
|
|
\
|
|
|
|
apt-get update; \
|
2024-04-17 23:52:42 +08:00
|
|
|
apt-get upgrade -y; \
|
2022-12-29 01:48:40 +08:00
|
|
|
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
|
|
|
|
2024-05-28 23:24:28 +08:00
|
|
|
HEALTHCHECK CMD nc -z 127.0.0.1 9200 || exit 1
|
2023-06-26 06:56:08 +08:00
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|