PaperLens / Dockerfile
vengen9840's picture
Upload Dockerfile with huggingface_hub
ff9d3d7 verified
Raw History Blame Contribute Delete
760 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential libgomp1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements-space.txt .
RUN pip install --no-cache-dir -r requirements-space.txt
RUN python3 -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
COPY download_data.py .
RUN python3 download_data.py
COPY src/ ./src/
EXPOSE 7860
CMD ["streamlit", "run", "src/dashboard/app_standalone.py", \
"--server.port=7860", \
"--server.address=0.0.0.0", \
"--server.headless=true", \
"--server.enableCORS=false", \
"--server.enableXsrfProtection=false", \
"--browser.gatherUsageStats=false", \
"--theme.base=light"]