-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (13 loc) · 708 Bytes
/
Dockerfile
File metadata and controls
18 lines (13 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ARG es_version=9.0.0.0
FROM docker.elastic.co/elasticsearch/elasticsearch:${es_version}
# got to declare again here
ARG es_version=0.1
ARG plugin_version=0.2
ARG commit_hash=aaaabbbbccccdddd
LABEL git_commit=${commit_hash}
LABEL "org.label-schema.url"="https://github.com/messiaen/full-lattice-search"
LABEL "org.label-schema.vcs-url"="https://github.com/messiaen/full-lattice-search"
COPY build/distributions/full-lattice-search-${plugin_version}-${es_version}.zip /full-lattice-search.zip
RUN bin/elasticsearch-plugin install analysis-phonetic
RUN bin/elasticsearch-plugin install analysis-smartcn
RUN bin/elasticsearch-plugin install file:///full-lattice-search.zip && rm -f /full-lattice-search.zip