| FROM ubuntu:22.04 | |
| RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone | |
| RUN apt-get update && \ | |
| apt-get install -y binutils python3 python3-pip python3-opencv libcurl4-openssl-dev libssl-dev libpcsclite-dev psmisc && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user . . | |
| COPY --chown=user ./dependency/libimutils.so_for_ubuntu22 /usr/lib/libimutils.so | |
| COPY --chown=user ./dependency/libttvcore.so /usr/lib | |
| RUN pip3 install gradio==5.23.2 opencv-python numpy fastapi | |
| RUN chmod a+x run_demo.sh | |
| EXPOSE 8000 7860 | |
| CMD ["./run_demo.sh"] | |