OFTQUEST / Dockerfile
Nicolasmed26's picture
Deploy MedMembers OFT 2026
c6f7384 verified
Raw History Blame Contribute Delete
498 Bytes
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"]