Update Dockerfile
Browse files- 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
|
| 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.
|
| 49 |
-
RUN
|
| 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
|