justin2341 commited on
Commit
df69caa
·
verified ·
1 Parent(s): 9501e03

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +46 -45
Dockerfile CHANGED
@@ -1,45 +1,46 @@
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
- libgomp1
15
-
16
- # Set up working directory
17
- RUN mkdir -p /home/openvino/kby-ai-fire
18
- WORKDIR /home/openvino/kby-ai-fire
19
-
20
- # Copy shared libraries and application files
21
- COPY ./libopencv.zip .
22
- RUN unzip libopencv.zip
23
- RUN cp -f libopencv/* /usr/local/lib/
24
- RUN ldconfig
25
-
26
- # Copy Python and application files
27
- COPY ./libfire.so .
28
- COPY ./app.py .
29
- COPY ./firesdk.py .
30
- COPY ./requirements.txt .
31
- COPY ./run.sh .
32
- COPY ./demo.py .
33
- COPY ./ncnn.zip .
34
- RUN unzip ncnn.zip
35
-
36
- # Install Python dependencies
37
-
38
- RUN pip3 install --no-cache-dir -r requirements.txt
39
- # RUN chmod +x ./run.sh
40
- # USER openvino
41
- # Set up entrypoint
42
- CMD ["bash", "./run.sh"]
43
-
44
- # Expose ports
45
- 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
+ libgomp1
15
+
16
+ # Set up working directory
17
+ RUN mkdir -p /home/openvino/kby-ai-fire
18
+ WORKDIR /home/openvino/kby-ai-fire
19
+
20
+ # Copy shared libraries and application files
21
+ COPY ./libopencv.zip .
22
+ RUN unzip libopencv.zip
23
+ RUN cp -f libopencv/* /usr/local/lib/
24
+ RUN ldconfig
25
+
26
+ # Copy Python and application files
27
+ COPY ./libfire.so .
28
+ COPY ./app.py .
29
+ COPY ./firesdk.py .
30
+ COPY ./requirements.txt .
31
+ COPY ./run.sh .
32
+ COPY ./demo.py .
33
+ COPY ./fire_examples .
34
+ COPY ./ncnn.zip .
35
+ RUN unzip ncnn.zip
36
+
37
+ # Install Python dependencies
38
+
39
+ RUN pip3 install --no-cache-dir -r requirements.txt
40
+ # RUN chmod +x ./run.sh
41
+ # USER openvino
42
+ # Set up entrypoint
43
+ CMD ["bash", "./run.sh"]
44
+
45
+ # Expose ports
46
+ EXPOSE 8080 9000