Spaces:
Sleeping
Sleeping
Download Dockerfile from larrysim/Test_Google_API: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/larrysim/Test_Google_API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/larrysim/Test_Google_API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/larrysim/Test_Google_API/resolve/main/Dockerfile
478 Bytes
| # Use a lightweight Python version | |
| FROM python:3.10-slim | |
| # Set up the working directory | |
| WORKDIR /app | |
| # Copy the requirements file first (better for caching) | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the app code | |
| COPY . . | |
| # Expose the port that Hugging Face expects (7860) | |
| EXPOSE 7860 | |
| # Run Streamlit on port 7860 | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |