Versão Inicial V18 (FFmpeg + Haswell)

This commit is contained in:
2026-01-25 00:49:49 +00:00
commit 56250a89ff
9 changed files with 748 additions and 0 deletions

33
Dockerfile Executable file
View File

@@ -0,0 +1,33 @@
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# 1. Instalar FFmpeg e APENAS o driver i965 (Haswell)
RUN apt-get update && \
apt-get install -y \
python3 \
python3-pip \
# i965 é o driver correto para 4ª Geração
i965-va-driver-shaders \
libva-drm2 \
libva-x11-2 \
vainfo \
ffmpeg \
jq \
&& rm -rf /var/lib/apt/lists/*
# 2. GARANTIA: Remove qualquer vestígio do driver iHD se ele veio por dependência
RUN apt-get remove -y intel-media-va-driver intel-media-va-driver-non-free || true
# 3. Python Setup
WORKDIR /app
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
# 4. Copiar código
COPY app /app
# Variável de ambiente fixa para o driver
ENV LIBVA_DRIVER_NAME=i965
CMD ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"]