forge
Explore
Log in

Don't you dare go Hollow

hezarfen_rule_based_chatbot

Clone
★ 0

0 watching0 forksPython1.2 MiBdaf5582Kadir Yönak3 months ago37 commits

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