Files
opus-orchestrator-ai/Dockerfile
T

30 lines
615 B
Docker
Raw Normal View History

2026-03-14 23:42:30 +00:00
# Opus Orchestrator API
# Dockerfile
2026-03-13 04:47:01 +00:00
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
2026-03-14 23:42:30 +00:00
RUN apt-get update && apt-get install -y \
git \
2026-03-13 04:47:01 +00:00
&& rm -rf /var/lib/apt/lists/*
2026-03-14 23:42:30 +00:00
# Copy requirements first for caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
2026-03-13 04:47:01 +00:00
2026-03-14 23:42:30 +00:00
# Copy application
COPY opus_orchestrator/ ./opus_orchestrator/
COPY README.md .
2026-03-13 04:47:01 +00:00
2026-03-14 23:42:30 +00:00
# Expose port
EXPOSE 8000
2026-03-13 04:47:01 +00:00
# Health check
2026-03-14 23:42:30 +00:00
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f http://localhost:8000/health || exit 1
2026-03-13 04:47:01 +00:00
2026-03-14 23:42:30 +00:00
# Run
CMD ["python", "-m", "opus_orchestrator.server"]