Dockerfile.amd64 1.2 KB

12345678910111213141516171819202122232425262728
  1. FROM frigate-base
  2. LABEL maintainer "blakeb@blakeshome.com"
  3. # By default, use the i965 driver
  4. ENV LIBVA_DRIVER_NAME=i965
  5. # Install packages for apt repo
  6. RUN wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | apt-key add - \
  7. && echo 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main' > /etc/apt/sources.list.d/intel-graphics.list \
  8. && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F63F0F2B90935439 \
  9. && echo 'deb http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal main' > /etc/apt/sources.list.d/kisak-mesa-focal.list
  10. RUN apt-get -qq update \
  11. && apt-get -qq install --no-install-recommends -y \
  12. # ffmpeg dependencies
  13. libgomp1 \
  14. # VAAPI drivers for Intel hardware accel
  15. 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 \
  16. && rm -rf /var/lib/apt/lists/* \
  17. && (apt-get autoremove -y; apt-get autoclean -y)
  18. # s6-overlay
  19. ADD https://github.com/just-containers/s6-overlay/releases/download/v2.2.0.3/s6-overlay-amd64-installer /tmp/
  20. RUN chmod +x /tmp/s6-overlay-amd64-installer && /tmp/s6-overlay-amd64-installer /
  21. ENTRYPOINT ["/init"]
  22. CMD ["python3", "-u", "-m", "frigate"]