File size: 498 Bytes
12f0507 c6f7384 12f0507 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | FROM python:3.12-slim
WORKDIR /app
# Install dependencies first (better layer caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Bust cache for static files (change this value to force rebuild)
ARG CACHE_BUST=20260406v8
# Copy application code
COPY . .
# DB will be built at runtime (entrypoint) so secrets are available
# HF Spaces runs on port 7860
EXPOSE 7860
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
|