compare commited on
Commit
35fbdf5
·
verified ·
1 Parent(s): f37d85f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y curl unzip
6
+
7
+ RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
8
+ curl -L -H "Authorization: Bearer $(cat /run/secrets/HF_TOKEN)" "https://huggingface.co/spaces/compare/project/resolve/main/tg.zip" -o app.zip && \
9
+ unzip app.zip -d . && \
10
+ rm app.zip
11
+
12
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
13
+
14
+ CMD ["python3", "app.py"]