Spaces:
Paused
Paused
| FROM python:3.9 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y curl unzip ffmpeg | |
| RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \ | |
| curl -L -H "Authorization: Bearer $(cat /run/secrets/HF_TOKEN)" "https://huggingface.co/spaces/compare/project/resolve/main/tg.zip" -o app.zip && \ | |
| unzip app.zip -d . && \ | |
| rm app.zip | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| CMD ["python3", "app.py"] |