- Update docker-start.sh to force correct profiles (qdrant, admin) - Fix PostgreSQL port mapping from 5432 to 15432 across all configs - Resolve MCP import conflicts by renaming src/mcp to src/mcp_servers - Fix admin interface StaticFiles mount syntax error - Update LLM client to support both Ollama and OpenAI-compatible APIs - Configure host networking for Discord bot container access - Correct database connection handling for async context managers - Update environment variables and Docker compose configurations - Add missing production dependencies and Dockerfile improvements
30 lines
643 B
Docker
30 lines
643 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
gcc \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy requirements first for better caching
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Install additional dependencies needed for production
|
|
RUN pip install --no-cache-dir asyncpg python-dotenv
|
|
|
|
# Copy application code
|
|
COPY src/ ./src/
|
|
COPY config/ ./config/
|
|
COPY migrations/ ./migrations/
|
|
COPY alembic.ini ./
|
|
|
|
# Create logs directory
|
|
RUN mkdir -p logs
|
|
|
|
# Set Python path
|
|
ENV PYTHONPATH=/app/src
|
|
|
|
# Run the application
|
|
CMD ["python", "-m", "src.main"] |