Update Dockerfile
Browse files- Dockerfile +30 -27
Dockerfile
CHANGED
@@ -1,27 +1,30 @@
|
|
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 |
-
|
17 |
-
RUN
|
18 |
-
|
19 |
-
#
|
20 |
-
RUN
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
#
|
27 |
-
|
|
|
|
|
|
|
|
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.zip
|
17 |
+
RUN unzip ./model.zip -d ./id_live/engine/ && rm ./model.zip
|
18 |
+
|
19 |
+
# Make the scripts executable
|
20 |
+
RUN chmod +x install.sh run_demo.sh
|
21 |
+
|
22 |
+
# Run the install.sh script to perform any installation tasks
|
23 |
+
RUN apt-get update && apt-get install -y sudo
|
24 |
+
RUN ./install.sh
|
25 |
+
|
26 |
+
# Expose port 8000(flask), 7860(gradio)
|
27 |
+
EXPOSE 8000 7860
|
28 |
+
|
29 |
+
# Set the default command to run the application
|
30 |
+
ENTRYPOINT ["./run_demo.sh"]
|