Spaces:
Sleeping
Sleeping
Download Dockerfile from NaveenKumar5/Testing_p: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/spaces/NaveenKumar5/Testing_p/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NaveenKumar5/Testing_p/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NaveenKumar5/Testing_p/resolve/main/Dockerfile
500 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install required system libraries for OpenCV | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set Hugging Face cache directory to a writable location | |
| ENV TRANSFORMERS_CACHE=/tmp/huggingface | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY src/ ./src/ | |
| EXPOSE 8501 | |
| CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.enableCORS=false"] | |