add dockerfile
This commit is contained in:
parent
4039f78237
commit
ca21ffaaee
17
dockerfile
17
dockerfile
@ -1,14 +1,7 @@
|
|||||||
FROM ubuntu:latest
|
FROM python:3.8
|
||||||
|
|
||||||
COPY api.py requirements.txt ./
|
COPY api.py requirements.txt ./
|
||||||
RUN apt-get update -y
|
RUN apt-get update
|
||||||
RUN apt-get install -y libgl1-mesa-glx
|
RUN apt-get install -y default-jdk
|
||||||
RUN apt-get install -y tesseract-ocr-pol
|
|
||||||
RUN apt-get install -y python3-pip
|
|
||||||
|
|
||||||
EXPOSE 80:8000/tcp
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
EXPOSE 80:8000/tcp
|
||||||
CMD python api.py
|
CMD python api.py
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user