jlov7/Dynamic-Function-Calling-Agent
0
1FROM python:3.11-slim2 3# Set working directory4WORKDIR /app5 6# Install system dependencies7RUN apt-get update && apt-get install -y \8 git \9 curl \10 && rm -rf /var/lib/apt/lists/*11 12# Copy requirements and install Python dependencies13COPY requirements.txt .14RUN pip install --no-cache-dir -r requirements.txt15 16# Copy application code17COPY . .18 19# Create non-root user for security20RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app21USER appuser22 23# Expose port24EXPOSE 800025 26# Health check27HEALTHCHECK --interval=30s --timeout=30s --start-period=60s --retries=3 \28 CMD curl -f http://localhost:8000/health || exit 129 30# Run the application31CMD ["python", "api_server.py"] 