Spaces:
Paused
Paused
Download Dockerfile from rayhanzuck/cloud: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/spaces/rayhanzuck/cloud/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rayhanzuck/cloud/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rayhanzuck/cloud/resolve/main/Dockerfile
433 Bytes
| # Gunakan base image Python yang ringan | |
| FROM python:3.9-slim | |
| # Tentukan working directory | |
| WORKDIR /app | |
| # Copy file yang diperlukan | |
| COPY requirements.txt ./ | |
| COPY launcher.py ./ | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port FastAPI (Hugging Face menggunakan port 7860 secara default) | |
| EXPOSE 7860 | |
| # Jalankan launcher.py untuk mengunduh dan menjalankan app.py | |
| CMD ["python", "launcher.py"] | |