Spaces:
Paused
Paused
Download Dockerfile from no-name-here/testing: direct link, hf CLI and curl.
- Browser
- Download file 658 Bytes
-
https://huggingface.co/spaces/no-name-here/testing/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/no-name-here/testing/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/no-name-here/testing/resolve/main/Dockerfile
658 Bytes
| FROM python:3.11-slim-bookworm | |
| ENV TZ=Asia/Dhaka | |
| ENV PYTHONUNBUFFERED=1 | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| git build-essential tzdata ffmpeg libssl-dev libffi-dev && \ | |
| ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime && echo "$TZ" > /etc/timezone && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN pip install --no-cache-dir -U pip wheel==0.45.1 | |
| WORKDIR /app | |
| # Only copy what's needed — single file bot | |
| COPY requirements.txt . | |
| RUN pip install -U -r requirements.txt | |
| COPY main.py . | |
| COPY config.env . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |