File size: 882 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 |
FROM python:3.7.17-slim-bullseye
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/*
COPY ./model /app/model
COPY ./tensorRT /app/tensorRT
RUN pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
RUN mkdir log
RUN mkdir log_run
COPY req.txt /app/
RUN pip install -r req.txt
COPY ./entity /app/entity
COPY ./function /app/function
COPY ./vncorenlp /app/vncorenlp
COPY ./main_cache_Thien.py /app/
COPY ./service_cache_Thien.py /app/
COPY ./summary.py /app/
RUN rm -r ~/.cache/pip/*
CMD ["python", "main_cache_Thien.py"]
|