blakeblackshear.frigate/docker/Dockerfile.amd64

28 lines
1.2 KiB
Docker
Raw Normal View History

2020-09-28 14:43:04 +02:00
FROM frigate-base
2020-09-26 02:36:22 +02:00
LABEL maintainer "blakeb@blakeshome.com"
2020-10-25 18:15:50 +01:00
# By default, use the i965 driver
ENV LIBVA_DRIVER_NAME=i965
2020-09-26 02:36:22 +02:00
# Install packages for apt repo
2021-07-03 16:45:39 +02:00
RUN wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | apt-key add - \
2021-07-03 17:08:51 +02:00
&& echo 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main' > /etc/apt/sources.list.d/intel-graphics.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F63F0F2B90935439 \
&& echo 'deb http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal main' > /etc/apt/sources.list.d/kisak-mesa-focal.list
2020-09-28 14:43:04 +02:00
RUN apt-get -qq update \
&& apt-get -qq install --no-install-recommends -y \
2021-06-26 20:57:30 +02:00
# ffmpeg dependencies
libgomp1 \
# VAAPI drivers for Intel hardware accel
2021-07-03 17:08:51 +02:00
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 \
2020-09-26 02:36:22 +02:00
&& rm -rf /var/lib/apt/lists/* \
2021-07-09 14:20:16 +02:00
&& (apt-get autoremove -y; apt-get autoclean -y)
# s6-overlay
ADD https://github.com/just-containers/s6-overlay/releases/download/v2.2.0.3/s6-overlay-amd64-installer /tmp/
RUN chmod +x /tmp/s6-overlay-amd64-installer && /tmp/s6-overlay-amd64-installer /
ENTRYPOINT ["/init"]
CMD ["python3", "-u", "-m", "frigate"]