|
FROM python:3.7
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
RUN apt-get update && apt-get install build-essential cmake git -y
|
|
|
|
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive \
|
|
apt-get -y install default-jre-headless && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN apt-get install unzip
|
|
RUN pip install gdown
|
|
RUN gdown --id 1MTAPYy9AcYtfiJ6m_pz6MPeA6li8pYp7
|
|
RUN unzip vncorenlp.zip -d /app/
|
|
|
|
|
|
|
|
|
|
RUN mkdir -p /app/model
|
|
RUN mkdir -p /app/log
|
|
RUN mkdir -p /app/log_run
|
|
|
|
COPY reqs_cpu.txt /app/
|
|
RUN pip install -r reqs_cpu.txt
|
|
|
|
COPY ./load_model.py /app/
|
|
RUN python load_model.py
|
|
|
|
COPY ./config /app/config
|
|
COPY ./entity /app/entity
|
|
COPY ./function /app/function
|
|
COPY ./main_cache.py /app/
|
|
COPY ./service_cache.py /app/
|
|
COPY ./summary.py /app/
|
|
COPY ./merge_topic.py /app/
|
|
COPY ./consumer_clustering.py /app/
|
|
COPY ./consumer_merge_clustering.py /app/
|
|
COPY ./run_multi_process.py /app/
|
|
|
|
RUN rm -r ~/.cache/pip/*
|
|
|
|
CMD ["python", "run_multi_process.py"]
|
|
|