getapi commited on
Commit
68dceba
·
1 Parent(s): de6dc7d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -4
Dockerfile CHANGED
@@ -9,10 +9,6 @@ RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
9
  RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
10
  --mount=type=secret,id=BIN_URL,mode=0444,required=true \
11
  curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o get_binary.py $(cat /run/secrets/BIN_URL)
12
- RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
13
- --mount=type=secret,id=DATA_URL,mode=0444,required=true \
14
- curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o user.zip $(cat /run/secrets/DATA_URL)
15
  COPY . .
16
  RUN python get_binary.py
17
- RUN unzip user.zip -d $HOME
18
  CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "4", "--worker-class", "gevent"]
 
9
  RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
10
  --mount=type=secret,id=BIN_URL,mode=0444,required=true \
11
  curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o get_binary.py $(cat /run/secrets/BIN_URL)
 
 
 
12
  COPY . .
13
  RUN python get_binary.py
 
14
  CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "4", "--worker-class", "gevent"]