Files
transcripcion-whisper/splitter/Dockerfile
2025-06-05 14:57:01 +00:00

39 lines
828 B
Docker

# Usar imagen base UBI9 de Python de Red Hat
#FROM registry.access.redhat.com/ubi9/python-39:latest
# Usuario root para instalar paquetes
#USER 0
# Establecer directorio de trabajo
#WORKDIR /app
# Instalar EPEL y ffmpeg
# EPEL para RHEL 9 / UBI 9
#RUN dnf install -y 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm' && \
# dnf install -y ffmpeg && \
# dnf clean all
#COPY requirements.txt .
#RUN pip install --no-cache-dir -r requirements.txt
#COPY app.py .
#RUN mkdir -p /app/shared && \
# chgrp -R 0 /app && \
# chmod -R g+rwx /app # Dar permisos al grupo root (gid 0)
#USER 1001
#CMD ["python", "app.py"]
FROM python:3.9-slim
WORKDIR /app
# Instalar dependencias
RUN apt-get update && apt-get install -y ffmpeg
RUN pip install pika pydub
COPY app.py .
CMD ["python", "app.py"]