| FROM python:3.11-slim |
|
|
| WORKDIR /app |
|
|
| RUN apt-get update && apt-get install -y \ |
| build-essential \ |
| curl \ |
| git \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| COPY requirements.txt . |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| COPY app.py . |
| COPY plugins/ plugins/ |
|
|
| |
| COPY auth_login.html . |
| COPY auth_register.html . |
| COPY index_ultimate.html . |
| COPY settings.html . |
|
|
| |
| COPY templates/ templates/ |
|
|
| |
| COPY static/ static/ |
|
|
| |
| COPY *.py ./ |
|
|
| |
| COPY training_*.json ./ |
| COPY translations.json . |
|
|
| |
| RUN mkdir -p noahski_data/knowledge noahski_data/cache noahski_data/generated_media noahski_data/uploads logs |
|
|
| |
| EXPOSE 7860 |
|
|
| ENV PYTHONUNBUFFERED=1 |
| ENV SERVER_HOST=0.0.0.0 |
| ENV SERVER_PORT=7860 |
|
|
| HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ |
| CMD curl -f http://localhost:7860/health || exit 1 |
|
|
| CMD ["python", "app.py"] |
|
|