wa / Dockerfile
Kompres's picture
Upload 3 files
9c8d413 verified
Raw History Blame Contribute Delete
519 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install ffmpeg dengan support H.265
RUN apt-get update && apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements dan install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy aplikasi
COPY app.py .
# Expose port untuk Gradio
EXPOSE 7860
# Set environment variables
ENV GRADIO_SERVER_NAME="0.0.0.0"
ENV GRADIO_SERVER_PORT=7860
# Jalankan aplikasi
CMD ["python", "app.py"]