FROM ubuntu:20.04 RUN apt-get update -y RUN apt-get install -y libpcsclite-dev psmisc RUN mkdir -p /home/kby-ai-idcard WORKDIR /home/kby-ai-idcard COPY ./libidsdk.so . COPY ./idsdk.py . COPY ./app.py . COPY ./requirements.txt . COPY ./data ./data COPY ./gradio ./gradio COPY ./run.sh . RUN pip3 install -r requirements.txt RUN chmod a+x run.sh CMD ["./run.sh"] EXPOSE 8080