File size: 690 Bytes
204ecfb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dc756e9
204ecfb
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"]