Spaces:
Sleeping
Sleeping
Download Dockerfile from sharmaaditya2003/CineGuide: direct link, hf CLI and curl.
- Browser
- Download file 707 Bytes
-
https://huggingface.co/spaces/sharmaaditya2003/CineGuide/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sharmaaditya2003/CineGuide/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sharmaaditya2003/CineGuide/resolve/main/Dockerfile
707 Bytes
| # Use the official Python image | |
| FROM python:3.10-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| # Added libgomp1 which is REQUIRED for FAISS | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of your app and artefacts | |
| COPY . . | |
| # Expose the port Streamlit runs on | |
| EXPOSE 7860 | |
| # This tells the container to look for environment variables | |
| ENV PYTHONUNBUFFERED=1 | |
| # Command to run the app | |
| CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"] |