Spaces:
Runtime error
Runtime error
File size: 455 Bytes
1150b5c bffc609 ed8f052 1150b5c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
FROM python:3.10
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN apt-get update && apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN --mount=type=secret,id=TELEGRAM_BOT_TOKEN,mode=0444,required=true
RUN --mount=type=secret,id=TELEGRAM_USER_ID,mode=0444,required=true
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |