| # Hugging Face Space - Streamlit app | |
| # https://huggingface.co/spaces/scholo/Datasetviewer | |
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| # data/ and hf_dataset/ are not in the repo (binary files excluded for HF push). | |
| # Use "Upload dataset" in the app to visualize your data. | |
| # HF Spaces expect port 7860 | |
| ENV STREAMLIT_SERVER_PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"] | |