CoolFace
Apppublic

Lookii125/image_editing_agent

sourceHugging Faceupdated 1mo agoView on Hugging Face
0likes
Dockerfile25 linesDownload Raw Back to root
1# Use an official Python runtime as a parent image2FROM python:3.10-slim3 4# Install system dependencies required for OpenCV and YOLO5RUN apt-get update && apt-get install -y \6    libgl1 \7    libglib2.0-0 \8    && rm -rf /var/lib/apt/lists/*9 10# Set the working directory in the container11WORKDIR /app12 13# Copy the requirements file and install dependencies14COPY requirements.txt .15RUN pip install --no-cache-dir -r requirements.txt16 17# Copy the rest of the application code18COPY . .19 20# Expose the port your backend runs on (e.g., 7860 is the default for HF Spaces)21EXPOSE 786022 23# Command to run your application (Update 'main:app' to match your FastAPI/Flask entry point)24# Uvicorn is used here assuming you are using FastAPI.25CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]