Dockerfile 411 B

12345678910111213141516
  1. FROM maven:3.9.2-eclipse-temurin-8-alpine as build
  2. RUN apk update \
  3. && apk add zip
  4. WORKDIR /app
  5. COPY . ./
  6. RUN mvn package \
  7. && unzip target/releases/elasticsearch-analysis-dynamic-synonym-*.zip -d target/extracted
  8. FROM docker.elastic.co/elasticsearch/elasticsearch:8.7.1
  9. COPY --from=build --chown=elasticsearch:elasticsearch /app/target/extracted /usr/share/elasticsearch/plugins/dynamic-synonym/