reoapae / Dockerfile
puzan789's picture
Updated
604255a
raw
history blame
520 Bytes
# Use a base image (e.g., Python)
FROM python:3.9-slim
# Set the working directory inside the container
WORKDIR /app
# Install ffmpeg and other dependencies
RUN apt-get update && \
apt-get install -y ffmpeg && \
rm -rf /var/lib/apt/lists/*
# Copy your application files to the container
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the required port (if applicable)
EXPOSE 7860
# Set the default command to run the application
CMD ["python", "app.py"]