ChenyuRabbitLove commited on
Commit
63db0b2
·
verified ·
1 Parent(s): fe8ae38

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -17,9 +17,10 @@ ENV HOME=/home/user \
17
 
18
  WORKDIR $HOME/app
19
 
20
- RUN git clone https://huggingface.co/spaces/JunyiAcademy/vaitor
 
21
 
22
- RUN pip install --no-cache-dir --upgrade -r $HOME/app/vaitor/requirements.txt
23
 
24
  RUN --mount=type=secret,id=PASSWORD,mode=0444,required=true \
25
  export PASSWORD=$(cat /run/secrets/PASSWORD) && \
@@ -74,4 +75,4 @@ RUN --mount=type=secret,id=AWS_REGION_NAME,mode=0444,required=true \
74
  echo "export AWS_REGION_NAME=${AWS_REGION_NAME}" >> $HOME/.bashrc
75
 
76
 
77
- CMD ["python", "vaitor/app.py"]
 
17
 
18
  WORKDIR $HOME/app
19
 
20
+ RUN --mount=type=secret,id=GITHUB_PAT,mode=0444,required=true \
21
+ git clone https://oauth2:$(cat /run/secrets/GITHUB_PAT)@github.com/junyiacademy/vaitor.git $HOME/app
22
 
23
+ RUN pip install --no-cache-dir --upgrade -r $HOME/vaitor/requirements.txt
24
 
25
  RUN --mount=type=secret,id=PASSWORD,mode=0444,required=true \
26
  export PASSWORD=$(cat /run/secrets/PASSWORD) && \
 
75
  echo "export AWS_REGION_NAME=${AWS_REGION_NAME}" >> $HOME/.bashrc
76
 
77
 
78
+ CMD ["python", "app.py"]