add files for aws
This commit is contained in:
parent
0936802758
commit
be43590153
18
dockerfile
18
dockerfile
@ -1,24 +1,14 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
COPY api.py requirements.txt ./
|
||||||
RUN apt-get update -y
|
RUN apt-get update -y
|
||||||
RUN apt-get install -y libgl1-mesa-glx
|
RUN apt-get install -y libgl1-mesa-glx
|
||||||
RUN apt-get install -y tesseract-ocr-pol
|
RUN apt-get install -y tesseract-ocr-pol
|
||||||
RUN apt-get install -y python3-pip
|
RUN apt-get install -y python3-pip
|
||||||
RUN pip3 install opencv-python
|
|
||||||
RUN pip3 install pytesseract
|
|
||||||
RUN pip3 install PyMuPDF
|
|
||||||
RUN pip3 install fastapi
|
|
||||||
RUN pip3 install python-multipart
|
|
||||||
RUN pip3 install uvicorn
|
|
||||||
|
|
||||||
# Expose the port 8000 in which our application runs
|
EXPOSE 80:8000/tcp
|
||||||
EXPOSE 8000
|
RUN pip install -r requirements.txt
|
||||||
# Stwórzmy w kontenerze (jeśli nie istnieje) katalog /app i przejdźmy do niego (wszystkie kolejne polecenia RUN, CMD, ENTRYPOINT, COPY i ADD będą w nim wykonywane)
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY main.py .
|
|
||||||
|
|
||||||
CMD ["uvicorn", "--host", "0.0.0.0", "--port", "8000", "main:app"]
|
|
||||||
|
|
||||||
|
CMD python api.py
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
build:
|
|
||||||
docker:
|
|
||||||
web: dockerfile
|
|
8
requirements.txt
Normal file
8
requirements.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
opencv-python
|
||||||
|
pytesseract
|
||||||
|
uvicorn
|
||||||
|
tika
|
||||||
|
fastapi
|
||||||
|
requests
|
||||||
|
python-multipart
|
||||||
|
PyMuPDF
|
Loading…
Reference in New Issue
Block a user