finance-chatbot / Dockerfile
Ardaarslan02's picture
Upload 6 files
736730d verified
raw
history blame contribute delete
652 Bytes
# Use an official Python runtime as the base image
FROM python:3.11-slim
# Set working directory in the container
WORKDIR /app
# Copy project files
COPY app.py utils.py agents.py tasks.py requirements.txt ./
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
libffi-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port 7860 for Gradio
EXPOSE 7860
# Set environment variables
ENV CREWAI_TELEMETRY_ENABLED=false
ENV GRADIO_SERVER_NAME=0.0.0.0
ENV GRADIO_SERVER_PORT=7860
# Command to run the Gradio app
CMD ["python", "app.py"]