Spaces:
Sleeping
Sleeping
File size: 658 Bytes
3f48026 66ca2ed 3f48026 35fc737 3f48026 66ca2ed 3f48026 66ca2ed 3f48026 66ca2ed 3f48026 35fc737 3f48026 66ca2ed 35fc737 3f48026 35fc737 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 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"]
|