Spaces:
Sleeping
Sleeping
Download Dockerfile from kkthyagharajan/Insect_Streamlit_App: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/spaces/kkthyagharajan/Insect_Streamlit_App/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/kkthyagharajan/Insect_Streamlit_App/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/kkthyagharajan/Insect_Streamlit_App/resolve/main/Dockerfile
504 Bytes
| FROM python:3.11-slim | |
| # Required for uploads in Docker Spaces | |
| ENV STREAMLIT_SERVER_ENABLE_CORS=false | |
| ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false | |
| ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false | |
| # Fix HuggingFace download + caching inside Docker container | |
| ENV HF_HOME=/data | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "Insect_HFspace_Streamlit_App.py", "--server.port=7860", "--server.address=0.0.0.0"] | |