FROM elasticsearch:7.17.6 #或者手动下载后然后安装也行 # COPY elasticsearch-analysis-ik-6.5.0.zip / # elasticsearch-plugin install --batch file:///elasticsearch-analysis-ik-6.5.0.zip #IK Analyzer是一个开源的,基于java语言开发的中文分词工具包。是开源社区中处理中分分词非常热门的插件。 RUN elasticsearch-plugin install --batch https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.17.6/elasticsearch-analysis-ik-7.17.6.zip && \ # 拼音分词器 elasticsearch-plugin install --batch https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.17.6/elasticsearch-analysis-pinyin-7.17.6.zip && \ # Smart Chinese Analysis Plugin elasticsearch-plugin install analysis-icu && \ # 日文分词器 elasticsearch-plugin install analysis-kuromoji && \ # 语音分析 elasticsearch-plugin install analysis-phonetic && \ # 计算字符哈希 elasticsearch-plugin install mapper-murmur3 && \ # 在_source中提供size字段 elasticsearch-plugin install mapper-size
docker build -t libin1987/elasticsearch:0.0.1 .
docker login docker push libin1987/elasticsearch:0.0.1 docker tag gulimall/admin-vue:0.0.1 libin1987/admin-vue:0.0.1