Spaces:
Runtime error
Runtime error
Download Dockerfile from mahmoudalyosify/SimCLR-Visual-Search-Engine: direct link, hf CLI and curl.
- Browser
- Download file 621 Bytes
-
https://huggingface.co/spaces/mahmoudalyosify/SimCLR-Visual-Search-Engine/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mahmoudalyosify/SimCLR-Visual-Search-Engine/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mahmoudalyosify/SimCLR-Visual-Search-Engine/resolve/main/Dockerfile
621 Bytes
| # Use official Python runtime as a parent image | |
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the ENTIRE repository (This includes 'src' and 'deployment' folders) | |
| COPY . . | |
| # Expose the port Streamlit uses | |
| EXPOSE 8501 | |
| # Command to run the application (Fixed for HF Spaces File Uploads) | |
| CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"] |