cfo_bot_agent / Dockerfile
Shakeel401's picture
Update Dockerfile
78e80ec verified
# Use official lightweight Python image
FROM python:3.11-slim
# Create working directory
WORKDIR /app
# Copy project
COPY . /app
# Install OS packages
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
sqlite3 \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Hugging Face Spaces runtime port
ENV PORT=7860
# Expose port (not required on Spaces but okay)
EXPOSE 7860
# Start FastAPI
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]