mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 15:15:22 +03:00
Simplify tensorrt building
This commit is contained in:
parent
535bf6e4b9
commit
d4c2764507
@ -3,8 +3,6 @@
|
|||||||
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
|
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
ARG TRT_BASE=nvcr.io/nvidia/tensorrt:23.03-py3
|
|
||||||
|
|
||||||
# Make this a separate target so it can be built/cached optionally
|
# Make this a separate target so it can be built/cached optionally
|
||||||
FROM wheels as trt-wheels
|
FROM wheels as trt-wheels
|
||||||
ARG DEBIAN_FRONTEND
|
ARG DEBIAN_FRONTEND
|
||||||
@ -15,7 +13,7 @@ COPY docker/tensorrt/requirements-amd64.txt /requirements-tensorrt.txt
|
|||||||
RUN mkdir -p /trt-wheels && pip3 wheel --wheel-dir=/trt-wheels -r /requirements-tensorrt.txt
|
RUN mkdir -p /trt-wheels && pip3 wheel --wheel-dir=/trt-wheels -r /requirements-tensorrt.txt
|
||||||
|
|
||||||
# Build CuDNN
|
# Build CuDNN
|
||||||
FROM ${TRT_BASE} AS cudnn-deps
|
FROM wget AS cudnn-deps
|
||||||
|
|
||||||
ARG COMPUTE_LEVEL
|
ARG COMPUTE_LEVEL
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user