File size: 1,146 Bytes
2094d36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3fbdb05
3dfe8c1
2094d36
 
 
 
 
 
 
 
 
 
 
 
c2810ad
2094d36
 
 
 
 
 
896254e
2094d36
896254e
2094d36
 
c596d2f
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu:20.04

# Install system dependencies, including Python and pip
RUN apt-get update -y && \
    apt-get install -y --no-install-recommends \
    python3.8 \
    python3-pip \
    libjpeg8 \
    libwebp6 \
    libpng16-16 \
    libtbb2 \
    libtiff5 \
    libtbb-dev \
    unzip \
    libopenexr-dev \
    libgl1-mesa-glx \
    libglib2.0-0 \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Ensure pip is installed
RUN python3.8 -m pip install --upgrade pip

# Set up working directory
RUN mkdir -p /home/kby-ai-palmprint
WORKDIR /home/kby-ai-palmprint

# Copy shared libraries and application files
COPY ./libhand.so /usr/local/lib/
COPY ./libopencv.zip .
RUN unzip libopencv.zip
RUN cp -f libopencv/* /usr/local/lib/ 
RUN ldconfig

# Copy Python and application files
COPY ./handtool-0.2.1-py3-none-any.whl .
COPY ./app.py .
COPY ./roi.py .
COPY ./demo.py .
COPY ./requirements.txt .
COPY ./run.sh .
COPY ./palmprint_examples ./palmprint_examples

# Install Python dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
RUN chmod +x ./run.sh
# Set up entrypoint
CMD ["./run.sh"]

# Expose ports
EXPOSE 8080 9000