Download Dockerfile from Kikulika/TaskBoard: direct link, hf CLI and curl.
- Browser
- Download file 849 Bytes
-
https://huggingface.co/spaces/Kikulika/TaskBoard/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Kikulika/TaskBoard/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Kikulika/TaskBoard/resolve/main/Dockerfile
849 Bytes
| FROM python:3.9-slim | |
| # Create app directory | |
| WORKDIR /app | |
| # Create data directory in /app instead of at root | |
| RUN mkdir -p /app/data && chmod 777 /app/data | |
| # Create temp directory for Streamlit to use instead of trying to write to /.streamlit | |
| ENV STREAMLIT_HOME_PATH=/app/.streamlit | |
| RUN mkdir -p $STREAMLIT_HOME_PATH && chmod 777 $STREAMLIT_HOME_PATH | |
| # Disable Streamlit telemetry to prevent it from trying to write to /.streamlit | |
| ENV STREAMLIT_ANALYTICS_ENABLED=false | |
| ENV STREAMLIT_METRICS_ENABLED=false | |
| ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=0 | |
| ENV STREAMLIT_SERVER_HEADLESS=true | |
| # Copy requirements first (for better caching) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Run the application | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] |