subprocess3 / Dockerfile
sreepathi-ravikumar's picture
Update Dockerfile
966074b verified
raw
history blame
414 Bytes
# Use official Python base image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy requirements.txt and install Python packages
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the app
COPY app.py video.py ./
RUN apt-get update && apt-get install -y ffmpeg
# Expose port 5000 (Flask default)
EXPOSE 7860
# Run the Flask app
CMD ["python", "app.py"]