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 ./
|
||||
RUN apt-get update -y
|
||||
RUN apt-get install -y libgl1-mesa-glx
|
||||
RUN apt-get install -y tesseract-ocr-pol
|
||||
RUN apt-get install -y python3-pip
|
||||
|
||||
EXPOSE 80:8000/tcp
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y default-jdk
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
CMD python api.py
|
||||
|
||||
|
||||
EXPOSE 80:8000/tcp
|
||||
CMD python api.py
|
Loading…
Reference in New Issue
Block a user