File size: 436 Bytes
35fbdf5
 
 
 
f739ce3
35fbdf5
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"]