mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Fix docker build
This commit is contained in:
parent
b7ba4f83ba
commit
5ef4a2afe1
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -50,7 +50,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: {context}/docker/build/main/Dockerfile
|
file: docker/build/main/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
target: frigate
|
target: frigate
|
||||||
@ -62,7 +62,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: {context}/docker/build/rpi/Dockerfile
|
file: docker/build/rpi/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
target: frigate-rpi
|
target: frigate-rpi
|
||||||
@ -75,7 +75,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: {context}/docker/build/main/Dockerfile
|
file: docker/build/main/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
target: frigate-tensorrt
|
target: frigate-tensorrt
|
||||||
|
|||||||
@ -11,6 +11,7 @@ services:
|
|||||||
shm_size: "256mb"
|
shm_size: "256mb"
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
|
file: docker/build/main/Dockerfile
|
||||||
# Use target devcontainer-trt for TensorRT dev
|
# Use target devcontainer-trt for TensorRT dev
|
||||||
target: devcontainer
|
target: devcontainer
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
@ -34,6 +34,32 @@ RUN wget -qO go2rtc "https://github.com/AlexxIT/go2rtc/releases/download/v1.6.0/
|
|||||||
&& chmod +x go2rtc
|
&& chmod +x go2rtc
|
||||||
|
|
||||||
|
|
||||||
|
####
|
||||||
|
#
|
||||||
|
# OpenVino Support
|
||||||
|
#
|
||||||
|
# 1. Download and convert a model from Intel's Public Open Model Zoo
|
||||||
|
# 2. Build libUSB without udev to handle NCS2 enumeration
|
||||||
|
#
|
||||||
|
####
|
||||||
|
# Download and Convert OpenVino model
|
||||||
|
FROM base_amd64 AS ov-converter
|
||||||
|
ARG DEBIAN_FRONTEND
|
||||||
|
|
||||||
|
# Install OpenVino Runtime and Dev library
|
||||||
|
COPY requirements-ov.txt /requirements-ov.txt
|
||||||
|
RUN apt-get -qq update \
|
||||||
|
&& apt-get -qq install -y wget python3 python3-distutils \
|
||||||
|
&& wget -q https://bootstrap.pypa.io/get-pip.py -O get-pip.py \
|
||||||
|
&& python3 get-pip.py "pip" \
|
||||||
|
&& pip install -r /requirements-ov.txt
|
||||||
|
|
||||||
|
# Get OpenVino Model
|
||||||
|
RUN mkdir /models \
|
||||||
|
&& cd /models && omz_downloader --name ssdlite_mobilenet_v2 \
|
||||||
|
&& cd /models && omz_converter --name ssdlite_mobilenet_v2 --precision FP16
|
||||||
|
|
||||||
|
|
||||||
# libUSB - No Udev
|
# libUSB - No Udev
|
||||||
FROM wget as libusb-build
|
FROM wget as libusb-build
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user