AI-Syntax / Dockerfile.python
Hariprasath5128's picture
πŸš€ FINAL: Definitively Clean Launch (AI-Syntax New Space)
0f95125
raw
history blame contribute delete
506 Bytes
# Python AI Agent Dockerfile
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -U pip && \
pip install --no-cache-dir -r requirements.txt && \
python -c "from phi.agent import Agent; from mistralai import Mistral; print('AI libraries installed successfully')"
# Copy source code
COPY server.py .
COPY ai_agent.py .
COPY .env .
# Expose FastAPI port
EXPOSE 8000
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]