mirror of
https://github.com/MichaelCade/90DaysOfDevOps.git
synced 2025-02-06 01:04:21 +07:00
18 lines
291 B
Docker
18 lines
291 B
Docker
![]() |
ARG ELASTIC_VERSION
|
||
|
|
||
|
# https://www.docker.elastic.co/
|
||
|
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
|
||
|
|
||
|
USER root
|
||
|
|
||
|
COPY . /
|
||
|
|
||
|
RUN set -eux; \
|
||
|
mkdir /state; \
|
||
|
chown elasticsearch /state; \
|
||
|
chmod +x /entrypoint.sh
|
||
|
|
||
|
USER elasticsearch:root
|
||
|
|
||
|
ENTRYPOINT ["/entrypoint.sh"]
|