Spaces:
Sleeping
Sleeping
Download Dockerfile from opinder2906/a1: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/opinder2906/a1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/opinder2906/a1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/opinder2906/a1/resolve/main/Dockerfile
1.06 kB
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Copy code + Streamlit config | |
| COPY . /app | |
| RUN mkdir -p /app/.streamlit | |
| # Install lightweight deps only | |
| # Install all of our deps | |
| RUN pip install --upgrade pip | |
| RUN pip install \ | |
| streamlit \ | |
| pandas \ | |
| scikit-learn \ | |
| textblob \ | |
| joblib \ | |
| xgboost \ | |
| torch \ | |
| transformers | |
| # Copy your config.toml into the container | |
| COPY .streamlit/config.toml /app/.streamlit/ | |
| ENV STREAMLIT_CONFIG_DIR=/app/.streamlit | |
| ENV STREAMLIT_HOME=/app/.streamlit | |
| EXPOSE 8501 | |
| CMD ["streamlit","run","app.py","--server.port=8501","--server.address=0.0.0.0"] | |
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |