uptime / Dockerfile
FarelDeveloper's picture
Create Dockerfile
ba2524f verified
Raw
History Blame Contribute Delete
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