pradsa / Dockerfile
plokmii's picture
Upload Dockerfile with huggingface_hub
4fdede1 verified
Raw
History Blame Contribute Delete
583 Bytes
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"]