Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +43 -43
Dockerfile
CHANGED
@@ -1,43 +1,43 @@
|
|
1 |
-
FROM openvino/ubuntu20_runtime:2024.5.0
|
2 |
-
|
3 |
-
USER root
|
4 |
-
RUN rm -rf /var/lib/apt/lists/* && apt update && apt install -y unzip \
|
5 |
-
libjpeg8 \
|
6 |
-
libwebp6 \
|
7 |
-
libpng16-16 \
|
8 |
-
libtbb2 \
|
9 |
-
libtiff5 \
|
10 |
-
libtbb-dev \
|
11 |
-
libopenexr-dev \
|
12 |
-
libgl1-mesa-glx \
|
13 |
-
libglib2.0-0
|
14 |
-
|
15 |
-
# Set up working directory
|
16 |
-
RUN mkdir -p /home/openvino/kby-ai-alpr
|
17 |
-
WORKDIR /home/openvino/kby-ai-alpr
|
18 |
-
|
19 |
-
# Copy shared libraries and application files
|
20 |
-
COPY ./libopencv.zip .
|
21 |
-
RUN unzip libopencv.zip
|
22 |
-
RUN cp -f libopencv/* /usr/local/lib/
|
23 |
-
RUN ldconfig
|
24 |
-
|
25 |
-
# Copy Python and application files
|
26 |
-
COPY ./libalpr.so .
|
27 |
-
COPY ./app.py .
|
28 |
-
COPY ./alprsdk.py .
|
29 |
-
COPY ./requirements.txt .
|
30 |
-
COPY ./
|
31 |
-
COPY ./run.sh .
|
32 |
-
COPY ./model ./model
|
33 |
-
|
34 |
-
# Install Python dependencies
|
35 |
-
|
36 |
-
RUN pip3 install --no-cache-dir -r requirements.txt
|
37 |
-
# RUN chmod +x ./run.sh
|
38 |
-
# USER openvino
|
39 |
-
# Set up entrypoint
|
40 |
-
CMD ["bash", "./run.sh"]
|
41 |
-
|
42 |
-
# Expose ports
|
43 |
-
EXPOSE 8080 9000
|
|
|
1 |
+
FROM openvino/ubuntu20_runtime:2024.5.0
|
2 |
+
|
3 |
+
USER root
|
4 |
+
RUN rm -rf /var/lib/apt/lists/* && apt update && apt install -y unzip \
|
5 |
+
libjpeg8 \
|
6 |
+
libwebp6 \
|
7 |
+
libpng16-16 \
|
8 |
+
libtbb2 \
|
9 |
+
libtiff5 \
|
10 |
+
libtbb-dev \
|
11 |
+
libopenexr-dev \
|
12 |
+
libgl1-mesa-glx \
|
13 |
+
libglib2.0-0
|
14 |
+
|
15 |
+
# Set up working directory
|
16 |
+
RUN mkdir -p /home/openvino/kby-ai-alpr
|
17 |
+
WORKDIR /home/openvino/kby-ai-alpr
|
18 |
+
|
19 |
+
# Copy shared libraries and application files
|
20 |
+
COPY ./libopencv.zip .
|
21 |
+
RUN unzip libopencv.zip
|
22 |
+
RUN cp -f libopencv/* /usr/local/lib/
|
23 |
+
RUN ldconfig
|
24 |
+
|
25 |
+
# Copy Python and application files
|
26 |
+
COPY ./libalpr.so .
|
27 |
+
COPY ./app.py .
|
28 |
+
COPY ./alprsdk.py .
|
29 |
+
COPY ./requirements.txt .
|
30 |
+
COPY ./alpr_examples ./alpr_examples
|
31 |
+
COPY ./run.sh .
|
32 |
+
COPY ./model ./model
|
33 |
+
|
34 |
+
# Install Python dependencies
|
35 |
+
|
36 |
+
RUN pip3 install --no-cache-dir -r requirements.txt
|
37 |
+
# RUN chmod +x ./run.sh
|
38 |
+
# USER openvino
|
39 |
+
# Set up entrypoint
|
40 |
+
CMD ["bash", "./run.sh"]
|
41 |
+
|
42 |
+
# Expose ports
|
43 |
+
EXPOSE 8080 9000
|