mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
build working
This commit is contained in:
parent
f2030d301f
commit
ef48e5109f
@ -54,7 +54,13 @@ RUN pip3 wheel --wheel-dir=/wheels -r requirements-wheels.txt
|
|||||||
FROM debian:11-slim
|
FROM debian:11-slim
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
# https://askubuntu.com/questions/972516/debian-frontend-environment-variable
|
||||||
|
ARG DEBIAN_FRONTEND="noninteractive"
|
||||||
|
# http://stackoverflow.com/questions/48162574/ddg#49462622
|
||||||
|
ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
|
||||||
|
# https://github.com/NVIDIA/nvidia-docker/wiki/Installation-(Native-GPU-Support)
|
||||||
|
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
||||||
|
|
||||||
ENV FLASK_ENV=development
|
ENV FLASK_ENV=development
|
||||||
|
|
||||||
COPY --from=wheels /wheels /wheels
|
COPY --from=wheels /wheels /wheels
|
||||||
@ -76,25 +82,29 @@ RUN apt-get -qq update \
|
|||||||
&& echo "libedgetpu1-max libedgetpu/accepted-eula select true" | debconf-set-selections \
|
&& echo "libedgetpu1-max libedgetpu/accepted-eula select true" | debconf-set-selections \
|
||||||
&& apt-get -qq update \
|
&& apt-get -qq update \
|
||||||
&& apt-get -qq install --no-install-recommends -y \
|
&& apt-get -qq install --no-install-recommends -y \
|
||||||
ffmpeg \
|
|
||||||
# coral drivers
|
# coral drivers
|
||||||
libedgetpu1-max python3-tflite-runtime python3-pycoral \
|
libedgetpu1-max python3-tflite-runtime python3-pycoral \
|
||||||
&& pip3 install -U /wheels/*.whl \
|
&& pip3 install -U /wheels/*.whl \
|
||||||
&& rm -rf /var/lib/apt/lists/* /wheels \
|
&& rm -rf /wheels \
|
||||||
&& (apt-get autoremove -y; apt-get autoclean -y)
|
# ffmpeg
|
||||||
|
&& if [ "${TARGETARCH}" = "amd64" ]; then \
|
||||||
# AMD64 specific packages
|
wget -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | apt-key add - \
|
||||||
RUN if [ "${TARGETARCH}" = "amd64" ]; \
|
&& echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" | tee /etc/apt/sources.list.d/jellyfin.list \
|
||||||
then \
|
&& apt-get update \
|
||||||
wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | apt-key add - \
|
&& apt-get install --no-install-recommends --no-install-suggests -y \
|
||||||
&& echo 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main' > /etc/apt/sources.list.d/intel-graphics.list \
|
mesa-va-drivers \
|
||||||
&& apt-get -qq update \
|
jellyfin-ffmpeg \
|
||||||
&& apt-get -qq install --no-install-recommends -y \
|
openssl \
|
||||||
# VAAPI drivers for Intel hardware accel
|
locales \
|
||||||
libva-drm2 libva2 libmfx1 i965-va-driver vainfo intel-media-va-driver-non-free mesa-vdpau-drivers mesa-va-drivers mesa-vdpau-drivers libdrm-radeon1 \
|
&& ln -s /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/bin/ffmpeg; \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
else \
|
||||||
&& (apt-get autoremove -y; apt-get autoclean -y) \
|
apt-get -qq install --no-install-recommends -y \
|
||||||
fi
|
ffmpeg; \
|
||||||
|
fi \
|
||||||
|
&& apt-get remove gnupg apt-transport-https -y \
|
||||||
|
&& apt-get clean autoclean -y \
|
||||||
|
&& apt-get autoremove -y \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=nginx /usr/local/nginx/ /usr/local/nginx/
|
COPY --from=nginx /usr/local/nginx/ /usr/local/nginx/
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user