ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=20.04 |
ADD file:8537b4db344382b39d669af27cd94ec0f870ceafe58c67ee54e3f9b38fb8d671 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 |
ENV SHELL=/bin/bash |
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-11-19T16:00:31.793213192Z 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=ffe992aa682c1968b5df375b5095b3a21f122bf3 org.label-schema.vcs-url=https://github.com/elastic/elasticsearch org.label-schema.vendor=Elastic org.label-schema.version=8.16.1 org.opencontainers.image.created=2024-11-19T16:00:31.793213192Z 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=ffe992aa682c1968b5df375b5095b3a21f122bf3 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.16.1 |
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 |