-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile.amd64
27 lines (21 loc) · 1.25 KB
/
Dockerfile.amd64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ghcr.io/dockhippie/alpine:latest-amd64@sha256:a3d2b263aebefdd2e8abda1ff0932ed9c52b07f0456367f02fccdbfdc6cf7a81
EXPOSE 9200 9300
VOLUME ["/var/lib/elasticsearch"]
WORKDIR /var/lib/elasticsearch
CMD ["/usr/bin/container"]
# renovate: datasource=github-releases depName=elastic/elasticsearch
ENV ELASTICSEARCH_VERSION=6.8.23
RUN apk update && \
apk upgrade && \
mkdir -p /var/lib/elasticsearch && \
groupadd -g 1000 elastico && \
useradd -u 1000 -d /var/lib/elasticsearch -g elastico -s /bin/bash -M elastico && \
apk add coreutils java-jna-native openjdk8-jre && \
rm -rf /var/cache/apk/*
RUN mkdir -p /usr/share/elasticsearch && \
curl -sLo - https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ELASTICSEARCH_VERSION}.tar.gz | tar xvzf - --strip 1 --exclude config --exclude logs --exclude plugins --exclude LICENSE.txt --exclude NOTICE.txt --exclude README.textile --exclude bin/*.bat --exclude bin/*.exe --exclude modules/x-pack-ml -C /usr/share/elasticsearch && \
ln -sf /usr/share/elasticsearch/bin/elasticsearch* /usr/bin/ && \
ln -sf /usr/share/elasticsearch/bin/xpack* /usr/bin/ && \
ln -sf /var/lib/elasticsearch/plugins /usr/share/elasticsearch/plugins && \
chown elastico:elastico /usr/share/elasticsearch
COPY ./overlay /