hezarfen_rule_based_chatbot
Clone
https://git.tahinli.com/archive/hezarfen_rule_based_chatbot.git
0 watching0 forksPython1.2 MiBdaf5582Kadir Yönak3 months ago37 commits
| 1 | FROM python:3.13-slim@sha256:bffeb7bd6a85767587059c6ba23e1e9122078e3aa3fa836099171b9bb5a9bb00 |
| 2 | |
| 3 | ENV PYTHONDONTWRITEBYTECODE=1 \ |
| 4 | PYTHONUNBUFFERED=1 \ |
| 5 | PIP_DISABLE_PIP_VERSION_CHECK=1 |
| 6 | |
| 7 | WORKDIR /app |
| 8 | |
| 9 | # Uygulama bağımlılıkları eklendiğinde konteyner katman önbelleğinden yararlanır. |
| 10 | COPY requirements.txt ./ |
| 11 | RUN pip install --no-cache-dir --requirement requirements.txt |
| 12 | |
| 13 | COPY src ./src |
| 14 | COPY tests ./tests |
| 15 | COPY data ./data |
| 16 | |
| 17 | # Container'ı root olmayan kullanıcıyla çalıştır. |
| 18 | RUN useradd --create-home --uid 10001 chatbot \ |
| 19 | && chown -R chatbot:chatbot /app |
| 20 | USER chatbot |
| 21 | |
| 22 | CMD ["python", "-m", "src.main", "--validate"] |