FROM python:3.11-slim # Timezone: Taiwan (so SQLite datetime('now','localtime') gives UTC+8 times) ENV TZ=Asia/Taipei RUN apt-get update && apt-get install -y --no-install-recommends tzdata && \ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . # DB stays in /app (no persistent storage needed, synced via HF repo) ENV DB_PATH=/app/pra_data.db EXPOSE 7860 COPY start.sh . RUN chmod +x start.sh CMD ["./start.sh"]