Spaces:
Sleeping
Sleeping
Download Dockerfile from Harshb11/LinkedIn_Caption_Generator: direct link, hf CLI and curl.
- Browser
- Download file 508 Bytes
-
https://huggingface.co/spaces/Harshb11/LinkedIn_Caption_Generator/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Harshb11/LinkedIn_Caption_Generator/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Harshb11/LinkedIn_Caption_Generator/resolve/main/Dockerfile
508 Bytes
| # Base image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements first (for caching) | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| # Copy app code | |
| COPY . . | |
| # Expose Streamlit default port | |
| EXPOSE 8501 | |
| # Set environment variable for Streamlit | |
| ENV STREAMLIT_SERVER_PORT=8501 | |
| ENV STREAMLIT_SERVER_HEADLESS=true | |
| # Run Streamlit | |
| CMD ["streamlit", "run", "src/streamlit_app.py"] | |