minions-ai-agents/Dockerfile

36 lines
954 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.11-slim
# Set the working directory in the container
WORKDIR /app
# Install system dependencies (needed for some python packages)
RUN apt-get update && apt-get install -y \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy the dependencies file to the working directory
COPY requirements.txt .
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Ensure .chainlit directory exists (if config.toml exists, it will be copied above)
RUN mkdir -p .chainlit || true
# Expose the port Chainlit runs on
EXPOSE 8000
# Define environment variable
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app
ENV CREWAI_TRACING_ENABLED=false
ENV CREWAI_TELEMETRY_OPTOUT=true
# Run the Chainlit app
CMD ["chainlit", "run", "src/app.py", "--host", "0.0.0.0", "--port", "8000"]