CiteAudit / Dockerfile
Wenyu Zhang
Switch input from PDF to BibTeX, drop GROBID dependency
f0e1eb0
Raw
History Blame Contribute Delete
440 Bytes
FROM python:3.11-slim
# Create a user with UID 1000 (HF Spaces convention) if it doesn't already exist
RUN if ! id -u 1000 > /dev/null 2>&1; then useradd -m -u 1000 user; fi
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY app.py .
COPY start.sh .
RUN chown -R 1000:1000 /app && chmod +x start.sh
USER 1000
EXPOSE 7860
CMD ["./start.sh"]