FROM python:3.12-slim

# 一鍵安裝：系統編譯器、MySQL 連線套件、以及核心的 NCBI BLAST+ 軟體！
RUN apt-get update && apt-get install -y --no-install-recommends \
    ncbi-blast+ \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .