Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files2 unmodified lines34566789101111121314157 unmodified lines232425262728272930313032332 unmodified lines# Set working directoryWORKDIR /app
# Install system deps (for FAISS, etc.)# Install system deps (needed for FAISS, docx, pypdf etc.)RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ libgomp1 \ && rm -rf /var/lib/apt/lists/*
# Copy files# Copy project filesCOPY requirements.txt .COPY app.py .
7 unmodified linesRUN useradd -ms /bin/bash appuser && chown -R appuser:appuser /data/storeUSER appuser
# Declare /data as persistent volumeVOLUME /data
# Expose port# Expose port for Hugging Face Spaces (they set $PORT)EXPOSE 7860
# Run app# ✅ Use HF $PORT instead of hardcoding 7860CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]Dockerfile+6-4