| FROM python:3.12 |
|
|
| RUN useradd -m -u 1000 user |
| USER user |
| ENV PATH="/home/user/.local/bin:$PATH" |
|
|
| WORKDIR /app |
|
|
|
|
|
|
| COPY --chown=user ./requirements.txt requirements.txt |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt |
|
|
| COPY --chown=user . /app |
|
|
| |
| RUN if [ -f "/app/agents_config.json" ]; then \ |
| echo "✅ agents_config.json found in container"; \ |
| ls -la /app/agents_config.json; \ |
| else \ |
| echo "⚠️ agents_config.json not found in container - will use fallback templates"; \ |
| ls -la /app/ | grep -E "agents|config" || echo "No config files found"; \ |
| fi |
|
|
| |
| USER root |
| RUN chmod +x /app/entrypoint_local.sh |
| |
| RUN chmod +x /app/scripts/populate_agent_templates.py |
|
|
| USER user |
|
|
| |
| CMD ["/app/entrypoint_local.sh"] |