File size: 938 Bytes
c74e333
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d68fd02
c74e333
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM openvino/ubuntu20_runtime:2024.5.0

USER root
RUN rm -rf /var/lib/apt/lists/* && apt update && apt install -y unzip \
    libjpeg8 \
    libwebp6 \
    libpng16-16 \
    libtbb2 \
    libtiff5 \
    libtbb-dev \
    libopenexr-dev \
    libgl1-mesa-glx \
    libglib2.0-0

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

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

# Copy Python and application files
COPY ./libalpr.so .
COPY ./app.py .
COPY ./demo.py .
COPY ./alprsdk.py .
COPY ./requirements.txt .
COPY ./alpr_examples ./alpr_examples
COPY ./run.sh .
COPY ./model ./model

# Install Python dependencies

RUN pip3 install --no-cache-dir -r requirements.txt
# RUN chmod +x ./run.sh
# USER openvino
# Set up entrypoint
CMD ["bash", "./run.sh"]

# Expose ports
EXPOSE 8080 9000