Spaces:
Runtime error
Runtime error
File size: 668 Bytes
ebac7a9 d30a373 c91a4a4 a15f014 d30a373 faca2a8 ccf0d93 bfe19aa d30a373 4cb3682 a2a4934 d30a373 364bf52 3d7bc5f d30a373 |
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 ./examples ./examples
COPY ./run.sh .
RUN pip3 install -r requirements.txt
RUN chmod a+x ./ocrengine/ttvocrsrv run.sh
CMD ["./run.sh"]
EXPOSE 8080 |