File size: 542 Bytes
6371d28 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # 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"]
|