hassan526 commited on
Commit
8ea1ab7
·
verified ·
1 Parent(s): a1ae443

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -34
Dockerfile CHANGED
@@ -1,36 +1,3 @@
1
- # FROM ubuntu:22.04
2
-
3
- # # Set the timezone of the container
4
- # ENV CONTAINER_TIMEZONE=UTC
5
- # RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
6
-
7
- # # Create directory for the application
8
- # RUN mkdir -p /home/recognito_id
9
-
10
- # # Set the working directory
11
- # WORKDIR /home/recognito_id
12
-
13
- # # Copy the application files into the container
14
- # COPY . .
15
-
16
- # ADD https://huggingface.co/recognito/ID-Document-Liveness-Detection-Models/resolve/main/model.tar.xz .
17
-
18
- # # Make the scripts executable
19
- # RUN chmod +x install.sh run_demo.sh
20
-
21
- # # Run the install.sh script to perform any installation tasks
22
- # RUN apt-get update && apt-get install -y sudo xz-utils
23
- # RUN ./install.sh
24
-
25
- # RUN tar -xvJf ./model.tar.xz -C ./id_live/engine/ && rm ./model.tar.xz
26
- # RUN chmod -R 777 .
27
-
28
- # # Expose port 8000(flask), 7860(gradio)
29
- # EXPOSE 8000 7860
30
-
31
- # # Set the default command to run the application
32
- # ENTRYPOINT ["./run_demo.sh"]
33
-
34
  FROM ubuntu:22.04
35
  RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
36
  RUN apt-get update && \
@@ -49,7 +16,7 @@ COPY --chown=user ./id_live/dependency/* /usr/lib
49
  ADD --chown=user https://huggingface.co/recognito/ID-Document-Liveness-Detection-Models/resolve/main/model.tar.xz .
50
  RUN tar -xvJf ./model.tar.xz -C ./id_live/engine/ && rm ./model.tar.xz
51
 
52
- RUN pip3 install gradio==4.36.0 opencv-python numpy
53
  RUN chmod a+x run_demo.sh
54
 
55
  EXPOSE 9000 7860
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 && \
 
16
  ADD --chown=user https://huggingface.co/recognito/ID-Document-Liveness-Detection-Models/resolve/main/model.tar.xz .
17
  RUN tar -xvJf ./model.tar.xz -C ./id_live/engine/ && rm ./model.tar.xz
18
 
19
+ RUN pip3 install gradio==5.23.2 opencv-python numpy
20
  RUN chmod a+x run_demo.sh
21
 
22
  EXPOSE 9000 7860