Spaces:
Running
Running
File size: 969 Bytes
df69caa a10bd9b df69caa |
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 |
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 \
libgomp1
# Set up working directory
RUN mkdir -p /home/openvino/kby-ai-fire
WORKDIR /home/openvino/kby-ai-fire
# 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 ./libfire.so .
COPY ./app.py .
COPY ./firesdk.py .
COPY ./requirements.txt .
COPY ./run.sh .
COPY ./demo.py .
COPY ./fire_examples ./fire_examples
COPY ./ncnn.zip .
RUN unzip ncnn.zip
# 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
|