File size: 666 Bytes
666d384 ea49242 666d384 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
FROM ubuntu:20.04
RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
RUN apt-get update -y
RUN apt-get install -y python3 python3-pip python3-opencv libcurl4-openssl-dev libssl-dev libpcsclite-dev psmisc
RUN mkdir -p /home/faceonlive_id_recognition
WORKDIR /home/faceonlive_id_recognition
COPY ./requirements.txt .
COPY ./ocrengine ./ocrengine
COPY ./ocrengine/libimutils.so /usr/lib
COPY ./ocrengine/libttvcore.so /usr/lib
COPY ./app.py .
COPY ./demo.py .
COPY ./samples ./samples
COPY ./run.sh .
RUN pip3 install -r requirements.txt
RUN chmod a+x ./ocrengine/ttvocrsrv run.sh
CMD ["./run.sh"]
EXPOSE 8080 |