Data-Analyst-AI-Agent / Dockerfile
pymite6941's picture
fix: add root-level Dockerfile required by HuggingFace Docker Spaces
ee0deda
Raw
History Blame Contribute Delete
356 Bytes
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
CREWAI_TOOLS_ALLOW_UNSAFE_PATHS=true
COPY backend/requirements.txt .
RUN pip install --no-cache-dir litellm
RUN pip install --no-cache-dir -r requirements.txt
COPY backend/ .
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]