hassan526 commited on
Commit
6119f73
·
verified ·
1 Parent(s): 549bfb4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -34,7 +34,7 @@
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 && \
37
- apt-get install -y binutils python3 python3-pip python3-opencv unzip && \
38
  rm -rf /var/lib/apt/lists/*
39
 
40
  RUN useradd -m -u 1000 user
@@ -45,8 +45,8 @@ WORKDIR /app
45
  COPY --chown=user . .
46
  COPY --chown=user ./id_live/dependency/* /usr/lib
47
 
48
- ADD https://huggingface.co/recognito/ID-Document-Liveness-Detection-Models/resolve/main/model.zip .
49
- RUN unzip ./model.zip -d ./id_live/engine/ && rm ./model.zip
50
  RUN chmod -R 777 .
51
 
52
  RUN pip3 install gradio opencv-python numpy
 
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 && \
37
+ apt-get install -y binutils python3 python3-pip python3-opencv && \
38
  rm -rf /var/lib/apt/lists/*
39
 
40
  RUN useradd -m -u 1000 user
 
45
  COPY --chown=user . .
46
  COPY --chown=user ./id_live/dependency/* /usr/lib
47
 
48
+ ADD https://huggingface.co/recognito/ID-Document-Liveness-Detection-Models/resolve/main/model.tar.xz .
49
+ RUN tar -xvJf ./model.tar.xz -C ./id_live/engine/ && rm ./model.tar.xz
50
  RUN chmod -R 777 .
51
 
52
  RUN pip3 install gradio opencv-python numpy