Download Dockerfile from aephiday/chat-db: direct link, hf CLI and curl.
- Browser
- Download file 629 Bytes
-
https://huggingface.co/spaces/aephiday/chat-db/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/aephiday/chat-db/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/aephiday/chat-db/resolve/main/Dockerfile
629 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Salin dependencies dan source code | |
| COPY requirements.txt ./ | |
| # termasuk app.py di root atau src/ | |
| COPY src/ ./src/ | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # Port untuk streamlit | |
| EXPOSE 7860 | |
| # Kesehatan aplikasi | |
| HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1 | |
| # Jalankan aplikasi Streamlit | |
| CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |