-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_api
27 lines (23 loc) · 1014 Bytes
/
Dockerfile_api
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
FROM nvcr.io/nvidia/pytorch:21.05-py3
MAINTAINER Matheus Pereira <[email protected]>
# Install linux packages
RUN apt update && apt install -y zip
# Install python dependencies
RUN python -m pip install --upgrade pip
RUN pip install --no-cache --upgrade tensorboard Cython onnx gsutil matplotlib \
opencv-python pillow scipy torch torchvision tqdm \
scikit-learn numpy utils scikit-image
RUN pip install pytesseract
RUN export DEBIAN_FRONTEND=noninteractive && apt-get -yq install tesseract-ocr-por
RUN pip install pdfplumber==0.5.28 pdf2image nltk
RUN apt-get install -y npm
RUN npm install difflib
RUN pip install bs4 lxml
RUN apt-get install -y poppler-utils
RUN pip install dateparser
RUN pip install fastapi
RUN pip install "uvicorn[standard]"
RUN pip install python-multipart
RUN wget https://github.com/MPMG-DCC-UFMG/F05/archive/refs/heads/master.zip && unzip master.zip
RUN cd F05-master
ENTRYPOINT ["sh", "-c","cd F05-master && uvicorn api:app --host=0.0.0.0 --port=15000 --reload"]