Files

39 lines
828 B
Docker
Raw Permalink Normal View History

# Usar imagen base UBI9 de Python de Red Hat
2025-06-05 14:57:01 +00:00
#FROM registry.access.redhat.com/ubi9/python-39:latest
2025-05-30 19:09:28 +02:00
# Usuario root para instalar paquetes
2025-06-05 14:57:01 +00:00
#USER 0
# Establecer directorio de trabajo
2025-06-05 14:57:01 +00:00
#WORKDIR /app
# Instalar EPEL y ffmpeg
# EPEL para RHEL 9 / UBI 9
2025-06-05 14:57:01 +00:00
#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 .
2025-05-30 19:09:28 +02:00
2025-06-05 14:57:01 +00:00
#RUN mkdir -p /app/shared && \
# chgrp -R 0 /app && \
# chmod -R g+rwx /app # Dar permisos al grupo root (gid 0)
#USER 1001
2025-06-05 14:57:01 +00:00
#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 .
2025-05-30 19:09:28 +02:00
CMD ["python", "app.py"]