Shamik's picture
feat: commenting the running of app in the dockerfile.
f85fe24 unverified
raw
history blame
747 Bytes
FROM python:3.12-slim
WORKDIR /app
COPY --link --chown=1000 . .
RUN mkdir -p /tmp/cache/
RUN chmod a+rwx -R /tmp/cache/
RUN apt-get update && apt-get install -y poppler-utils ca-certificates curl gnupg build-essential \
gcc \
g++ \
make \
libffi-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
ENV PYTHONPATH=/app
ENV HF_HOME=/tmp/cache/
RUN mkdir db
RUN huggingface-cli download Shamik/arxiv_cs_2020_07_2025 --repo-type dataset --local-dir ./db
RUN pip install --no-cache-dir -r requirements.txt
ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true
# FIXME
# CMD ["python", "app.py"]