ldv-pilot / Dockerfile
system's picture
system HF Staff
Sync from GitHub master (2a0b7bb16638c9f52a7b4c6a0f104e12eccb43b7)
82f53e7 verified
Raw
History Blame Contribute Delete
636 Bytes
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
libmagic1 \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements and install
COPY ldv-backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY ldv-backend/ /app/ldv-backend/
COPY ldv-frontend/ /app/ldv-frontend/
COPY datasets/ /app/datasets/
WORKDIR /app/ldv-backend
RUN chmod +x start.sh
# Expose server port (HF Spaces defaults to 7860)
EXPOSE 7860
# start.sh re-provisions the pilot-admin account (ephemeral storage) then execs gunicorn
CMD ["./start.sh"]