FROM python:3.9 # Set working directory WORKDIR /app # Clone the FastSD CPU repository RUN git clone https://github.com/rupeshs/fastsdcpu.git . # Upgrade pip and install dependencies RUN pip install --upgrade pip RUN pip install -r requirements.txt # Expose port for FastAPI server EXPOSE 8000 # Command to run the FastAPI server CMD ["python", "src/app.py", "--api"]