Spaces:
Sleeping
Sleeping
Download Dockerfile from wangsongwen/PaperReview: direct link, hf CLI and curl.
- Browser
- Download file 764 Bytes
-
https://huggingface.co/spaces/wangsongwen/PaperReview/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/wangsongwen/PaperReview/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/wangsongwen/PaperReview/resolve/main/Dockerfile
764 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.11-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| git \ | |
| wget \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy requirement files first to leverage Docker cache | |
| COPY requirements.txt . | |
| # Install Python requirements | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Create the local_models directory | |
| RUN mkdir -p local_models | |
| # Expose the Streamlit port | |
| EXPOSE 8501 | |
| # Command to run the application | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |