Spaces:
Sleeping
Sleeping
Download Dockerfile from FarelDeveloper/uptime: direct link, hf CLI and curl.
- Browser
- Download file 598 Bytes
-
https://huggingface.co/spaces/FarelDeveloper/uptime/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/FarelDeveloper/uptime/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/FarelDeveloper/uptime/resolve/main/Dockerfile
598 Bytes
| # ---------- BASE IMAGE ---------- | |
| FROM python:3.10-slim | |
| # ---------- WORKDIR ---------- | |
| WORKDIR /app | |
| # ---------- DEPENDENCIES ---------- | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # ---------- APP CODE ---------- | |
| COPY app.py . | |
| # ---------- ENVIRONMENT ---------- | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # ---------- SECRETS (optional runtime envs) ---------- | |
| # Jangan tulis token langsung di sini. | |
| # Gunakan secrets/env variable saat run: | |
| # docker run -e BOT_TOKEN="xxx" -e CHAT_ID="xxx" uptimezelarixa | |
| # ---------- RUN ---------- | |
| CMD gunicorn --bind 0.0.0.0:$PORT app:app |