File size: 1,075 Bytes
5120311
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM python:3.7

WORKDIR /app


RUN apt-get update && apt-get install build-essential cmake git -y

#----------------JRE (for vncorenlp)--------------
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/


# COPY ./model /app/model

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"]