FROM python:3.11-slim WORKDIR /app RUN apt-get update && apt-get install -y \ git \ curl \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . ENV REPO_CLONE_DIR=/tmp/repositories ENV APP_PORT=8000 ENV ALLOWED_ORIGINS=http://localhost:7860 EXPOSE 8000 EXPOSE 7860 COPY docker-entrypoint.sh /app/docker-entrypoint.sh RUN chmod +x /app/docker-entrypoint.sh ENTRYPOINT ["/app/docker-entrypoint.sh"]