testing / Dockerfile
AkashKumarave's picture
Upload folder using huggingface_hub
38dc649 verified
# Use Python 3.10 as base image
FROM python:3.10
# Set the working directory inside the container
WORKDIR /app
# Install required system packages
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
libsm6 \
libxext6 \
&& rm -rf /var/lib/apt/lists/*
# Clone and install Roop manually before other dependencies
RUN git clone https://github.com/s0md3v/roop.git /app/roop && \
pip install --no-cache-dir /app/roop
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt || true
# Copy application files
COPY . .
# Expose port for Gradio or Flask
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]