-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (18 loc) · 732 Bytes
/
Dockerfile
File metadata and controls
28 lines (18 loc) · 732 Bytes
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 debian:buster-slim as buildstage
LABEL maintainer="Utsav Mishra <https://festivitymishra.github.io/>"
# Install dependencies and Google tesseract
RUN apt-get update && \
apt-get install -y git pkg-config && \
apt-get install -y libsm6 libxext6 libxrender-dev && \
apt-get install -y python-pip && \
apt-get install -y tesseract-ocr && \
apt-get install -y libtesseract-dev
# Build Python APP Here
RUN mkdir aadhaar_ocr_masking
COPY Aadhaar.py /aadhaar_ocr_masking/Aadhaar.py
COPY app.py /aadhaar_ocr_masking/app.py
COPY requirements.txt /aadhaar_ocr_masking/requirements.txt
RUN cd aadhaar_ocr_masking && \
pip install -r requirements.txt
WORKDIR /aadhaar_ocr_masking
CMD ["python", "app.py"]