Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

fix jieba cache issue #815

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions apps/common/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@ RUN \
done

# Prebuild Jieba dictionary cache
USER mediacloud
COPY bin/build_jieba_dict_cache.py /
RUN \
/build_jieba_dict_cache.py && \
rm /build_jieba_dict_cache.py && \
true
RUN /build_jieba_dict_cache.py

USER root
RUN rm /build_jieba_dict_cache.py

# Symlink Log::Log4perl configuration to where it's going to be found

RUN ln -s /opt/mediacloud/src/common/perl/log4perl.conf /etc/log4perl.conf