ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=20.04 |
ADD file:7486147a645d8835a5181c79f00a3606c6b714c83bcbfcd8862221eb14690f9e in / |
CMD ["/bin/bash"] |
RUN /bin/sh -c yes no | dpkg-reconfigure dash && for iter in 1 2 3 4 5 6 7 8 9 10; do export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends ca-certificates curl netcat p11-kit unzip zip && apt-get clean && rm -rf /var/lib/apt/lists/* && exit_code=0 && break || exit_code=$? && echo "apt-get error: retry $iter in 10s" && sleep 10; done; exit $exit_code # buildkit |
RUN /bin/sh -c groupadd -g 1000 elasticsearch && adduser --uid 1000 --gid 1000 --home /usr/share/elasticsearch elasticsearch && adduser elasticsearch root && chown -R 0:0 /usr/share/elasticsearch # buildkit |
ENV ELASTIC_CONTAINER=true |
WORKDIR /usr/share/elasticsearch |
COPY --chown=0:0 /usr/share/elasticsearch /usr/share/elasticsearch # buildkit |
COPY --chown=0:0 /bin/tini /bin/tini # buildkit |
ENV PATH=/usr/share/elasticsearch/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
COPY bin/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh # buildkit |
RUN /bin/sh -c chmod g=u /etc/passwd && chmod 0555 /usr/local/bin/docker-entrypoint.sh && find / -xdev -perm -4000 -exec chmod ug-s {} + && chmod 0775 /usr/share/elasticsearch && chown elasticsearch bin config config/jvm.options.d data logs plugins # buildkit |
COPY bin/docker-openjdk /etc/ca-certificates/update.d/docker-openjdk # buildkit |
RUN /bin/sh -c /etc/ca-certificates/update.d/docker-openjdk # buildkit |
EXPOSE map[9200/tcp:{} 9300/tcp:{}] |
LABEL org.label-schema.build-date=2024-10-09T22:08:00.328917561Z org.label-schema.license=Elastic-License-2.0 org.label-schema.name=Elasticsearch org.label-schema.schema-version=1.0 org.label-schema.url=https://www.elastic.co/products/elasticsearch org.label-schema.usage=https://www.elastic.co/guide/en/elasticsearch/reference/index.html org.label-schema.vcs-ref=f97532e680b555c3a05e73a74c28afb666923018 org.label-schema.vcs-url=https://github.com/elastic/elasticsearch org.label-schema.vendor=Elastic org.label-schema.version=8.15.3 org.opencontainers.image.created=2024-10-09T22:08:00.328917561Z org.opencontainers.image.documentation=https://www.elastic.co/guide/en/elasticsearch/reference/index.html org.opencontainers.image.licenses=Elastic-License-2.0 org.opencontainers.image.revision=f97532e680b555c3a05e73a74c28afb666923018 org.opencontainers.image.source=https://github.com/elastic/elasticsearch org.opencontainers.image.title=Elasticsearch org.opencontainers.image.url=https://www.elastic.co/products/elasticsearch org.opencontainers.image.vendor=Elastic org.opencontainers.image.version=8.15.3 |
ENTRYPOINT ["/bin/tini" "--" "/usr/local/bin/docker-entrypoint.sh"] |
CMD ["eswrapper"] |
USER 1000:0 |
RUN /bin/sh -c bin/elasticsearch-plugin install --batch ingest-attachment # buildkit |