File size: 797 Bytes
c8d30bc 88334b9 c8d30bc 88334b9 c8d30bc 88334b9 c8d30bc 88334b9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends libgomp1 gcc g++ && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY config.py main.py input_sanitizer.py checkpoint.py ./
COPY agents/ ./agents/
COPY tools/ ./tools/
COPY skills/ ./skills/
COPY ui/ ./ui/
COPY harness/ ./harness/
COPY docs/ ./docs/
COPY data/ ./data/
COPY demo_target.py ./
RUN mkdir -p logs/checkpoints memory reports
RUN useradd -m -u 1000 -s /bin/bash user && chown -R user:user /app
USER user
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 SANDBOX_ENABLED=false ENABLE_CRITIC=false ENABLE_MEMORY_RAG=false
EXPOSE 7860
CMD ["python3", "-m", "uvicorn", "ui.server:app", "--host", "0.0.0.0", "--port", "7860"] |