Download Dockerfile from aephiday/pypuzzle8: direct link, hf CLI and curl.
- Browser
- Download file 605 Bytes
-
https://huggingface.co/spaces/aephiday/pypuzzle8/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/aephiday/pypuzzle8/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/aephiday/pypuzzle8/resolve/main/Dockerfile
605 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY . . | |
| # Create necessary directories with proper permissions | |
| RUN mkdir -p /tmp/.streamlit && chmod 777 /tmp/.streamlit | |
| RUN mkdir -p ~/.streamlit && chmod 777 ~/.streamlit | |
| # Set environment variables | |
| ENV STREAMLIT_CONFIG_DIR=/tmp/.streamlit | |
| ENV STREAMLIT_SERVER_HEADLESS=true | |
| ENV STREAMLIT_SERVER_PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"] |