hassan526 commited on
Commit
204ecfb
·
verified ·
1 Parent(s): 1b25268

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -22
Dockerfile CHANGED
@@ -1,22 +1,22 @@
1
- FROM ubuntu:22.04
2
- RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
3
- RUN apt-get update && \
4
- apt-get install -y binutils python3 python3-pip python3-opencv libcurl4-openssl-dev libssl-dev libpcsclite-dev psmisc && \
5
- rm -rf /var/lib/apt/lists/*
6
-
7
- RUN useradd -m -u 1000 user
8
- USER user
9
- ENV PATH="/home/user/.local/bin:$PATH"
10
-
11
- WORKDIR /app
12
- COPY --chown=user . .
13
- COPY --chown=user ./dependency/libimutils.so_for_ubuntu22 /usr/lib/libimutils.so
14
- COPY --chown=user ./dependency/libttvcore.so /usr/lib
15
-
16
- RUN pip3 install gradio==5.23.2 opencv-python numpy fastapi
17
- RUN chmod a+x run_demo.sh
18
-
19
- EXPOSE 9000 7860
20
-
21
- ENTRYPOINT ["./run_demo.sh"]
22
-
 
1
+ FROM ubuntu:22.04
2
+ RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
3
+ RUN apt-get update && \
4
+ apt-get install -y binutils python3 python3-pip python3-opencv libcurl4-openssl-dev libssl-dev libpcsclite-dev psmisc && \
5
+ rm -rf /var/lib/apt/lists/*
6
+
7
+ RUN useradd -m -u 1000 user
8
+ USER user
9
+ ENV PATH="/home/user/.local/bin:$PATH"
10
+
11
+ WORKDIR /app
12
+ COPY --chown=user . .
13
+ COPY --chown=user ./dependency/libimutils.so_for_ubuntu22 /usr/lib/libimutils.so
14
+ COPY --chown=user ./dependency/libttvcore.so /usr/lib
15
+
16
+ RUN pip3 install gradio==5.23.2 opencv-python numpy fastapi
17
+ RUN chmod a+x run_demo.sh
18
+
19
+ EXPOSE 9000 7860
20
+
21
+ CMD ["./run_demo.sh"]
22
+