Spaces:
Runtime error
Runtime error
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,mode=0444,required=true | |
COPY . . | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |