Spaces:
Sleeping
Sleeping
Download Dockerfile from MBG0903/Doodle_Game: direct link, hf CLI and curl.
- Browser
- Download file 566 Bytes
-
https://huggingface.co/spaces/MBG0903/Doodle_Game/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MBG0903/Doodle_Game/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MBG0903/Doodle_Game/resolve/main/Dockerfile
566 Bytes
| FROM python:3.9 | |
| # Workdir inside the container | |
| WORKDIR /app | |
| # Install deps first (better cache) | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Streamlit needs a writable home (for machine_id, etc.) | |
| ENV HOME=/tmp | |
| RUN mkdir -p /tmp/.streamlit && chmod -R 777 /tmp/.streamlit | |
| # Copy the entire repo (so /app now contains /src and any root files) | |
| COPY . /app | |
| # Expose Streamlit port | |
| EXPOSE 8501 | |
| # Run the app from src/app.py | |
| CMD ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |