File size: 897 Bytes
2deec0b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72358ca
2deec0b
 
 
 
 
ca9373d
897fabe
2deec0b
 
50a95ee
887eb82
2deec0b
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:22.04

# Set the timezone of the container
ENV CONTAINER_TIMEZONE=UTC
RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone

# Create directory for the application
RUN mkdir -p /home/recognito_id

# Set the working directory
WORKDIR /home/recognito_id

# Copy the application files into the container
COPY . .

ADD https://huggingface.co/recognito/ID-Document-Liveness-Detection-Models/resolve/main/model.zip .

# Make the scripts executable
RUN chmod +x install.sh run_demo.sh

# Run the install.sh script to perform any installation tasks
RUN apt-get update && apt-get install -y sudo unzip
RUN unzip ./model.zip -d ./id_live/engine/ && rm ./model.zip
RUN ./install.sh

RUN chmod -R 777 .

# Expose port 8000(flask), 7860(gradio)
EXPOSE 8000 7860

# Set the default command to run the application
ENTRYPOINT ["./run_demo.sh"]